X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fidentity.php;h=a792c4714426a9a1334442a90f07620177f9ca85;hb=88e336b3bc14f2e6c23c59732150abd6e17b00da;hp=a30d81cf3a4d371a4b44c31cc5089d40e6945e85;hpb=967ecb42053dd5bd2b7d66435641ae865c54066b;p=friendica.git diff --git a/include/identity.php b/include/identity.php index a30d81cf3a..a792c47144 100644 --- a/include/identity.php +++ b/include/identity.php @@ -371,7 +371,7 @@ function profile_sidebar($profile, $block = 0) { if(count($r)) $updated = date("c", strtotime($r[0]['updated'])); - $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0 + $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `hidden` AND NOT `archive` AND `network` IN ('%s', '%s', '%s', '')", intval($profile['uid']), dbesc(NETWORK_DFRN), @@ -813,7 +813,6 @@ function zrl_init(&$a) { $result = Cache::get("gprobe:".$urlparts["host"]); if (!is_null($result)) { - $result = unserialize($result); if (in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) { logger("DDoS attempt detected for ".$urlparts["host"]." by ".$_SERVER["REMOTE_ADDR"].". server data: ".print_r($_SERVER, true), LOGGER_DEBUG); return;