From e985436b3be0a6c0cdb3de57c61de16a25cc0de5 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 10 Aug 2016 20:49:51 -0700 Subject: forum detection was off for forums with custom perms --- include/zot.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 4e443652f..3a1986e3b 100644 --- a/include/zot.php +++ b/include/zot.php @@ -3784,9 +3784,11 @@ function zotinfo($arr) { // check if it has characteristics of a public forum based on custom permissions. $t = q("select * from abconfig where abconfig.cat = 'my_perms' and abconfig.chan = %d and abconfig.xchan = '%s' and abconfig.k in ('tag_deliver', 'send_stream') ", intval($e['channel_id']), - intval($e['channel_hash']) + dbesc($e['channel_hash']) ); + $ch = 0; + if($t) { foreach($t as $tt) { if($tt['k'] == 'tag_deliver' && $tt['v'] == 1) -- cgit v1.2.3