]> git.mxchange.org Git - friendica.git/commitdiff
Forgot to commit the changes (regarding fermionic's comments) in notifier.php
authorzottel <github@zottel.net>
Tue, 6 Nov 2012 07:16:08 +0000 (08:16 +0100)
committerzottel <github@zottel.net>
Tue, 6 Nov 2012 07:16:08 +0000 (08:16 +0100)
include/notifier.php

index a999c3297b4c55cc3096f723c55b5302a9d2d23a..2f4120da257c87538d4d09edf29e9d0a22e2cf63 100644 (file)
@@ -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) {