aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-10 09:05:27 +0000
committerMario <mario@mariovavti.com>2021-05-10 09:05:27 +0000
commit836de7f1a5a999d5133bc957926ba361e5b6c56e (patch)
tree047571e2a91585ec9806f6090e4eb508712cc622 /include/channel.php
parent954d06bdb7c8ef9f73f799eec72fcbd8bbc56b9f (diff)
downloadvolse-hubzilla-836de7f1a5a999d5133bc957926ba361e5b6c56e.tar.gz
volse-hubzilla-836de7f1a5a999d5133bc957926ba361e5b6c56e.tar.bz2
volse-hubzilla-836de7f1a5a999d5133bc957926ba361e5b6c56e.zip
id should be intval here
Diffstat (limited to 'include/channel.php')
-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);