From: friendica Date: Fri, 27 Jan 2012 07:08:51 +0000 (-0800) Subject: for people whose DB's are not updating X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94b9e9ce6d872e72e9846809fedd4a4cee8d63e3;p=friendica.git for people whose DB's are not updating --- diff --git a/include/security.php b/include/security.php index 394986f279..ed57771098 100755 --- a/include/security.php +++ b/include/security.php @@ -56,7 +56,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive where `manage`.`uid` = %d", intval($master_record['uid']) ); - if(count($r)) + if($r && count($r)) $a->identities = array_merge($a->identities,$r); $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1",