]> git.mxchange.org Git - friendica.git/blobdiff - mod/attach.php
Rename dbesc to DBA::escape
[friendica.git] / mod / attach.php
index a04fba9ca14d276e9ff824844704dc3b2fc4ab74..99f0fc46000bdb54c6ef74678a53779bb3a64a1c 100644 (file)
@@ -32,7 +32,7 @@ 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::isResult($r)) {