X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fattach.php;h=274acfc2bed8af1f4e23af00eb267e6fa9925cfd;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=03f850f0d1749972d7e68e63de295007bf856cb5;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/attach.php b/mod/attach.php index 03f850f0d1..274acfc2be 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; }