diff options
author | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-03-01 22:08:50 +0100 |
---|---|---|
committer | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-03-01 22:08:50 +0100 |
commit | 7206e8af3a943b0fb286f253ed3abbda2d2572b6 (patch) | |
tree | e8beacbc4547abdddc89a064e678824880a81021 /include/widgets.php | |
parent | 2d45f9f385a5738d2126f66c0e5467533e6838c2 (diff) | |
download | volse-hubzilla-7206e8af3a943b0fb286f253ed3abbda2d2572b6.tar.gz volse-hubzilla-7206e8af3a943b0fb286f253ed3abbda2d2572b6.tar.bz2 volse-hubzilla-7206e8af3a943b0fb286f253ed3abbda2d2572b6.zip |
Small fix for deleted forum channels showing in the forum widget (had this after migration from RM on 1 or 2 channels)
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php index a995fdf1c..aa0be87d6 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1197,7 +1197,7 @@ function widget_forums($arr) { $perms_sql = item_permissions_sql(local_channel()) . item_normal(); - $r1 = q("select * from abook left join xchan on abook_xchan = xchan_hash where ( xchan_pubforum = 1 or ((abook_their_perms & %d ) != 0 and (abook_their_perms & %d ) = 0) ) and abook_channel = %d order by xchan_name $limit ", + $r1 = q("select * from abook left join xchan on abook_xchan = xchan_hash where ( xchan_pubforum = 1 or ((abook_their_perms & %d ) != 0 and (abook_their_perms & %d ) = 0) ) and xchan_deleted = 0 and abook_channel = %d order by xchan_name $limit ", intval(PERMS_W_TAGWALL), intval(PERMS_W_STREAM), intval(local_channel()) |