X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=f5bbe9a1692d0f95ecd70d9e35c10ac87346ad6c;hb=023dd993f60a103601c4943a33678356d919a643;hp=6ade0c0bb3257888e9220be61190ad5a58ca6770;hpb=f5826105bfc514599b2c5b6692bca14ca4bc5d78;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index 6ade0c0bb3..f5bbe9a169 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -65,12 +65,12 @@ function notifications_content(&$a) { '$hide_url' => ((strlen($sql_extra)) ? 'notifications/all' : 'notifications' ), '$hide_text' => ((strlen($sql_extra)) ? 'Show Ignored Requests' : 'Hide Ignored Requests') )); -dbg(2); + $r = q("SELECT `intro`.`id` AS `intro-id`, `intro`.*, `contact`.* FROM `intro` LEFT JOIN `contact` ON `intro`.`contact-id` = `contact`.`id` WHERE `intro`.`uid` = %d $sql_extra AND `intro`.`blocked` = 0 ", intval($_SESSION['uid'])); -dbg(0); + if(($r !== false) && (count($r))) {