Browse Source

Merge pull request #4096 from annando/fix-pr-4095

Fix for PR 4095
pull/4098/head
Michael Vogel 3 years ago
committed by GitHub
parent
commit
ea4995a6a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Model/User.php

+ 3
- 3
src/Model/User.php View File

@ -40,7 +40,7 @@ class User
* @return boolean|array
*/
public static function getOwnerDataById($uid) {
$r = dba::p("SELECT
$r = dba::fetch_first("SELECT
`contact`.*,
`user`.`prvkey` AS `uprvkey`,
`user`.`timezone`,
@ -54,14 +54,14 @@ class User
INNER JOIN `user`
ON `user`.`uid` = `contact`.`uid`
WHERE `contact`.`uid` = ?
AND `contact`.`self` = 1
AND `contact`.`self`
LIMIT 1",
$uid
);
if (!DBM::is_result($r)) {
return false;
}
return $r[0];
return $r;
}
/**


Loading…
Cancel
Save