From bd66eefe683668f61c3324e547ffc3e818440f61 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 18 Dec 2017 09:21:47 +0000 Subject: [PATCH] Fix for PR 4095 --- src/Model/User.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/User.php b/src/Model/User.php index a43560b01..f487de766 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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; } /**