X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fattach.php;h=6dd9135e511d9d2f00243512723bfe8d000780ad;hb=de4a2e6fd03cd0aab94a256eba92ed593931534b;hp=03f850f0d1749972d7e68e63de295007bf856cb5;hpb=3a13aba62e15728d1d5c0b43108c86a36959e2dd;p=friendica.git diff --git a/mod/attach.php b/mod/attach.php index 03f850f0d1..6dd9135e51 100644 --- a/mod/attach.php +++ b/mod/attach.php @@ -1,8 +1,11 @@ argc != 2) { notice( t('Item not available.') . EOL); @@ -16,7 +19,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 +32,7 @@ function attach_init(&$a) { dbesc($item_id) ); - if(! count($r)) { + if (! DBM::is_result($r)) { notice( t('Permission denied.') . EOL); return; }