mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
Rename selectOne to selectFirst
This commit is contained in:
parent
3e141d268e
commit
a66a4959f5
10 changed files with 10 additions and 10 deletions
|
@ -458,7 +458,7 @@ function windowsphonepush_login(App $a)
|
|||
$user_id = User::authenticate($_SERVER['PHP_AUTH_USER'], trim($_SERVER['PHP_AUTH_PW']));
|
||||
|
||||
if ($user_id) {
|
||||
$record = dba::selectOne('user', [], ['uid' => $user_id]);
|
||||
$record = dba::selectFirst('user', [], ['uid' => $user_id]);
|
||||
} else {
|
||||
logger('API_login failure: ' . print_r($_SERVER, true), LOGGER_DEBUG);
|
||||
header('WWW-Authenticate: Basic realm="Friendica"');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue