aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 19:05:03 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 19:05:03 +0000
commit7e0416ac97ad90bd34c7e9a60a8370d23f3891b9 (patch)
tree28361944a9c737e04120ed55096a3bd8212775ce
parent98112497baab3c4210709df536543a6392dfd838 (diff)
downloadvolse-hubzilla-7e0416ac97ad90bd34c7e9a60a8370d23f3891b9.tar.gz
volse-hubzilla-7e0416ac97ad90bd34c7e9a60a8370d23f3891b9.tar.bz2
volse-hubzilla-7e0416ac97ad90bd34c7e9a60a8370d23f3891b9.zip
Remove unusable variable $sql_query
-rw-r--r--Zotlabs/Module/Photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index ee360dac5..87697f5a7 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -180,7 +180,7 @@ class Photo extends \Zotlabs\Web\Controller {
$channel = channelx_by_n($r[0]['uid']);
// Now we'll see if we can access the photo
- $e = q("SELECT * FROM photo WHERE resource_id = '%s' AND imgscale = %d $sql_extra LIMIT 1",
+ $e = q("SELECT * FROM photo WHERE resource_id = '%s' AND imgscale = %d LIMIT 1",
dbesc($photo),
intval($resolution)
);