X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FGContact.php;h=18d817161507b6f245d3e7b83367eb164837535d;hb=0bc2fe66f54717a3f2e86fd9626dc565e9d00fd7;hp=6f068889eebe2e96b910cd35b5e5585e231e379c;hpb=47c2565917bb0f190ef9374d261e538c424b210c;p=friendica.git diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 6f068889ee..18d8171615 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -915,6 +915,11 @@ class GContact intval($uid) ); + if (!DBA::isResult($r)) { + logger('Cannot find user with uid=' . $uid, LOGGER_INFO); + return false; + } + $location = Profile::formatLocation( ["locality" => $r[0]["locality"], "region" => $r[0]["region"], "country-name" => $r[0]["country-name"]] );