notification bug - don't use $r, we already set it to something else that we need further on.
This commit is contained in:
@@ -2109,11 +2109,13 @@ function send_status_notifications($post_id,$item) {
|
||||
|
||||
$link = get_app()->get_baseurl() . '/display/' . $item['mid'];
|
||||
|
||||
$r = q("select id from notify where link = '%s' and uid = %d limit 1",
|
||||
|
||||
$y = q("select id from notify where link = '%s' and uid = %d limit 1",
|
||||
dbesc($link),
|
||||
intval($item['uid'])
|
||||
);
|
||||
if($r)
|
||||
|
||||
if($y)
|
||||
$notify = false;
|
||||
|
||||
if(! $notify)
|
||||
|
||||
Reference in New Issue
Block a user