notification bug - don't use $r, we already set it to something else that we need further on.

This commit is contained in:
friendica
2014-02-06 13:32:29 -08:00
parent 7a522be20b
commit f9381ed746
2 changed files with 6 additions and 3 deletions

View File

@@ -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)