mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Replace dba::select(limit => 1) by dba::selectOne()
This commit is contained in:
parent
4b05d70b94
commit
ca6e477701
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::select('user', [], ['uid' => $user_id], ['limit' => 1]);
|
||||
$record = dba::selectOne('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