X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fvideos.php;h=6550428f95150b5157ada29b0d40fb6319372f5a;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=1bb59bc5429e9b614e0cb3596d62eb23fc072f64;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index 1bb59bc542..6550428f95 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -140,7 +140,7 @@ function videos_post(&$a) { dbesc($video_id) ); - if(count($r)) { + if(dbm::is_result($r)) { q("DELETE FROM `attach` WHERE `uid` = %d AND `id` = '%s'", intval(local_user()), dbesc($video_id) @@ -259,7 +259,7 @@ function videos_content(&$a) { intval($contact_id), intval($owner_uid) ); - if(count($r)) { + if(dbm::is_result($r)) { $can_post = true; $contact = $r[0]; $remote_contact = true; @@ -287,7 +287,7 @@ function videos_content(&$a) { intval($contact_id), intval($owner_uid) ); - if(count($r)) { + if(dbm::is_result($r)) { $contact = $r[0]; $remote_contact = true; } @@ -347,7 +347,7 @@ function videos_content(&$a) { $sql_extra GROUP BY hash", intval($a->data['user']['uid']) ); - if(count($r)) { + if(dbm::is_result($r)) { $a->set_pager_total(count($r)); $a->set_pager_itemspage(20); } @@ -363,7 +363,7 @@ function videos_content(&$a) { $videos = array(); - if(count($r)) { + if(dbm::is_result($r)) { foreach($r as $rr) { if($a->theme['template_engine'] === 'internal') { $alt_e = template_escape($rr['filename']);