aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-26 15:49:00 -0700
committerfriendica <info@friendica.com>2014-10-26 15:49:00 -0700
commitd2af45d2066565a5eab31b5105b874ee98f10364 (patch)
treea865086cad4696c23ab755c13ea818fd0e493ef7
parent864fcd1da6c1933620fdd50a5a930011e7acccd2 (diff)
downloadvolse-hubzilla-d2af45d2066565a5eab31b5105b874ee98f10364.tar.gz
volse-hubzilla-d2af45d2066565a5eab31b5105b874ee98f10364.tar.bz2
volse-hubzilla-d2af45d2066565a5eab31b5105b874ee98f10364.zip
use intval rather than dbesc since these are ints. Should work regardless, but this makes it consistent with the way we do most other queries.
-rwxr-xr-xmod/like.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/like.php b/mod/like.php
index debd0b618..f4fd33787 100755
--- a/mod/like.php
+++ b/mod/like.php
@@ -218,8 +218,8 @@ function like_content(&$a) {
// get the item. Allow linked photos (which are normally hidden) to be liked
$r = q("SELECT * FROM item WHERE id = %d and (item_restrict = 0 or item_restrict = %d) LIMIT 1",
- dbesc($item_id),
- dbesc(ITEM_HIDDEN)
+ intval($item_id),
+ intval(ITEM_HIDDEN)
);
if(! $item_id || (! $r)) {