X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fqueue.php;h=f36e7723cd209b14978bcb40cadddfaaafafd3e2;hb=87eb3d5ef268534e1c8fac9ed63dad4fb50989ee;hp=8f57bf3d7247176f520389c3cd2956d135dd833d;hpb=6c0c9d542abaabd8000a10eb47b0921426fcd25d;p=friendica.git diff --git a/include/queue.php b/include/queue.php index 8f57bf3d72..f36e7723cd 100644 --- a/include/queue.php +++ b/include/queue.php @@ -127,7 +127,7 @@ function queue_run(&$argv, &$argc){ $c = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1", intval($qi[0]['cid']) ); - if(! count($c)) { + if (! dbm::is_result($c)) { remove_queue_item($q_item['id']); continue; } @@ -157,7 +157,7 @@ function queue_run(&$argv, &$argc){ FROM `user` WHERE `uid` = %d LIMIT 1", intval($c[0]['uid']) ); - if(! count($u)) { + if (! dbm::is_result($u)) { remove_queue_item($q_item['id']); continue; } @@ -196,7 +196,7 @@ function queue_run(&$argv, &$argc){ case NETWORK_DIASPORA: if($contact['notify']) { logger('queue: diaspora_delivery: item '.$q_item['id'].' for '.$contact['name'].' <'.$contact['url'].'>'); - $deliver_status = diaspora::transmit($owner,$contact,$data,$public,true); + $deliver_status = Diaspora::transmit($owner,$contact,$data,$public,true); if($deliver_status == (-1)) { update_queue_time($q_item['id']);