aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-10 09:05:27 +0000
committerMario <mario@mariovavti.com>2021-05-10 09:07:59 +0000
commitf388412c48c1607b47a5457981b90a2937150835 (patch)
tree7c6636caa991e353bac04ffb51199841d20d0304
parent43008aa42b10d9aa62f6a4e5becaa89233e1a243 (diff)
downloadvolse-hubzilla-f388412c48c1607b47a5457981b90a2937150835.tar.gz
volse-hubzilla-f388412c48c1607b47a5457981b90a2937150835.tar.bz2
volse-hubzilla-f388412c48c1607b47a5457981b90a2937150835.zip
id should be intval here
(cherry picked from commit 836de7f1a5a999d5133bc957926ba361e5b6c56e)
-rw-r--r--include/channel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php
index 31c7c407f..bc9f686e7 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2593,7 +2593,7 @@ function channelx_by_n($id) {
}
$r = q("SELECT * FROM channel LEFT JOIN xchan ON channel_hash = xchan_hash WHERE channel_id = %d AND channel_removed = 0 LIMIT 1",
- dbesc($id)
+ intval($id)
);
return(($r) ? $r[0] : false);