X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=4d044f45f8297e58bdbb0e0804f97d90e5d413dc;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=33cf7489c167764b716f3cee77ca7dae78011667;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index 33cf7489c1..4d044f45f8 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -20,7 +20,7 @@ function subthread_content(&$a) { dbesc($item_id) ); - if(! $item_id || (! count($r))) { + if(! $item_id || (! dbm::is_result($r))) { logger('subthread: no item ' . $item_id); return; } @@ -41,7 +41,7 @@ function subthread_content(&$a) { intval($item['contact-id']), intval($item['uid']) ); - if(! count($r)) + if(! dbm::is_result($r)) return; if(! $r[0]['self']) $remote_owner = $r[0]; @@ -53,7 +53,7 @@ function subthread_content(&$a) { WHERE `contact`.`self` = 1 AND `contact`.`uid` = %d LIMIT 1", intval($owner_uid) ); - if(count($r)) + if(dbm::is_result($r)) $owner = $r[0]; if(! $owner) { @@ -75,7 +75,7 @@ function subthread_content(&$a) { intval($_SESSION['visitor_id']), intval($owner_uid) ); - if(count($r)) + if(dbm::is_result($r)) $contact = $r[0]; } if(! $contact) {