]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/GContact.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / Model / GContact.php
index 6f068889eebe2e96b910cd35b5e5585e231e379c..18d817161507b6f245d3e7b83367eb164837535d 100644 (file)
@@ -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"]]
                );