From: zottel Date: Tue, 6 Nov 2012 07:16:08 +0000 (+0100) Subject: Forgot to commit the changes (regarding fermionic's comments) in notifier.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7e121ccf7072858622e1ee544f7530c89556ffe;hp=2093fa8b3fc421bb851bede29c1b4f0ff6c02b59;p=friendica.git Forgot to commit the changes (regarding fermionic's comments) in notifier.php --- diff --git a/include/notifier.php b/include/notifier.php index a999c3297b..2f4120da25 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -136,11 +136,15 @@ function notifier_run($argv, $argc){ } elseif($cmd === 'removeme') { $r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval($item_id)); + if (! $r) + return; $user = $r[0]; $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1", intval($item_id)); + if (! $r) + return; $self = $r[0]; $r = q("SELECT * FROM `contact` WHERE `self` = 0 AND `uid` = %d", intval($item_id)); - if(! count($r)) + if(! $r) return; require_once('include/Contact.php'); foreach($r as $contact) {