X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fattach.php;h=99f0fc46000bdb54c6ef74678a53779bb3a64a1c;hb=61693419e8cf571a2ad26690423d356023badc2e;hp=6a5f0a39e679b32a00615b4bae57ed4e88701305;hpb=0ec44f3e8a73229c3aadea86f61b5571a701c6b7;p=friendica.git diff --git a/mod/attach.php b/mod/attach.php index 6a5f0a39e6..99f0fc4600 100644 --- a/mod/attach.php +++ b/mod/attach.php @@ -22,7 +22,7 @@ function attach_init(App $a) // Check for existence, which will also provide us the owner uid $r = DBA::selectFirst('attach', [], ['id' => $item_id]); - if (!DBA::is_result($r)) { + if (!DBA::isResult($r)) { notice(L10n::t('Item was not found.'). EOL); return; } @@ -32,10 +32,10 @@ function attach_init(App $a) // Now we'll see if we can access the attachment $r = q("SELECT * FROM `attach` WHERE `id` = '%d' $sql_extra LIMIT 1", - dbesc($item_id) + DBA::escape($item_id) ); - if (!DBA::is_result($r)) { + if (!DBA::isResult($r)) { notice(L10n::t('Permission denied.') . EOL); return; }