Forgot to commit the changes (regarding fermionic's comments) in notifier.php
This commit is contained in:
parent
2093fa8b3f
commit
b7e121ccf7
1 changed files with 5 additions and 1 deletions
|
@ -136,11 +136,15 @@ function notifier_run($argv, $argc){
|
||||||
}
|
}
|
||||||
elseif($cmd === 'removeme') {
|
elseif($cmd === 'removeme') {
|
||||||
$r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval($item_id));
|
$r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval($item_id));
|
||||||
|
if (! $r)
|
||||||
|
return;
|
||||||
$user = $r[0];
|
$user = $r[0];
|
||||||
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1", intval($item_id));
|
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1", intval($item_id));
|
||||||
|
if (! $r)
|
||||||
|
return;
|
||||||
$self = $r[0];
|
$self = $r[0];
|
||||||
$r = q("SELECT * FROM `contact` WHERE `self` = 0 AND `uid` = %d", intval($item_id));
|
$r = q("SELECT * FROM `contact` WHERE `self` = 0 AND `uid` = %d", intval($item_id));
|
||||||
if(! count($r))
|
if(! $r)
|
||||||
return;
|
return;
|
||||||
require_once('include/Contact.php');
|
require_once('include/Contact.php');
|
||||||
foreach($r as $contact) {
|
foreach($r as $contact) {
|
||||||
|
|
Loading…
Reference in a new issue