aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-10 12:35:27 +0000
committerMario <mario@mariovavti.com>2019-01-10 13:36:31 +0100
commit3eba0c2297d8f15ea47b0d481f9392fe6c9ecc7e (patch)
tree1fbe0e8a651005ed20bdf80e1fda511ccf872ab5 /Zotlabs
parent414b7e28d33e12692401c0babacbb3461160e270 (diff)
downloadvolse-hubzilla-3eba0c2297d8f15ea47b0d481f9392fe6c9ecc7e.tar.gz
volse-hubzilla-3eba0c2297d8f15ea47b0d481f9392fe6c9ecc7e.tar.bz2
volse-hubzilla-3eba0c2297d8f15ea47b0d481f9392fe6c9ecc7e.zip
do not count removed channels
(cherry picked from commit 01f4ce96f1fe835db774acffb65b2553e1b44c0a)
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/New_channel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/New_channel.php b/Zotlabs/Module/New_channel.php
index 73cdf4c8c..98aa480fe 100644
--- a/Zotlabs/Module/New_channel.php
+++ b/Zotlabs/Module/New_channel.php
@@ -134,7 +134,7 @@ class New_channel extends \Zotlabs\Web\Controller {
$default_role = '';
$aid = get_account_id();
if($aid) {
- $r = q("select count(channel_id) as total from channel where channel_account_id = %d",
+ $r = q("select count(channel_id) as total from channel where channel_account_id = %d and channel_removed = 0",
intval($aid)
);
if($r && (! intval($r[0]['total']))) {