X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fattach.php;h=94cb75a386d2a7f6d7ae7681635a495d8f39d7ad;hb=de689583e2741a2caee0e266a19a07d1ad4ed043;hp=03f850f0d1749972d7e68e63de295007bf856cb5;hpb=03c489150c9b56695bd8233a7aba2c6a29b15a67;p=friendica.git diff --git a/mod/attach.php b/mod/attach.php index 03f850f0d1..94cb75a386 100644 --- a/mod/attach.php +++ b/mod/attach.php @@ -16,7 +16,7 @@ function attach_init(&$a) { $r = q("SELECT * FROM `attach` WHERE `id` = %d LIMIT 1", intval($item_id) ); - if(! count($r)) { + if (! dbm::is_result($r)) { notice( t('Item was not found.'). EOL); return; } @@ -29,7 +29,7 @@ function attach_init(&$a) { dbesc($item_id) ); - if(! count($r)) { + if (! dbm::is_result($r)) { notice( t('Permission denied.') . EOL); return; }