aboutsummaryrefslogtreecommitdiffstats
path: root/mod/like.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/like.php')
-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)) {