aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-10 20:49:51 -0700
committerredmatrix <git@macgirvin.com>2016-08-10 20:49:51 -0700
commite985436b3be0a6c0cdb3de57c61de16a25cc0de5 (patch)
tree7b1bbefcd5be3a98b767d40d3c22020613f94f41
parenta8a3812890a23ece4bfff6fe009609f579479bc4 (diff)
downloadvolse-hubzilla-e985436b3be0a6c0cdb3de57c61de16a25cc0de5.tar.gz
volse-hubzilla-e985436b3be0a6c0cdb3de57c61de16a25cc0de5.tar.bz2
volse-hubzilla-e985436b3be0a6c0cdb3de57c61de16a25cc0de5.zip
forum detection was off for forums with custom perms
-rw-r--r--include/zot.php4
1 files changed, 3 insertions, 1 deletions
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)