aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-10 13:35:27 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-10 13:35:27 +0100
commit01f4ce96f1fe835db774acffb65b2553e1b44c0a (patch)
tree3f5cac9c7f572315df2ededccf4232f8e068e962 /Zotlabs/Module
parentb22caef65fe2d87d702592bd0ecb057d21c168dd (diff)
downloadvolse-hubzilla-01f4ce96f1fe835db774acffb65b2553e1b44c0a.tar.gz
volse-hubzilla-01f4ce96f1fe835db774acffb65b2553e1b44c0a.tar.bz2
volse-hubzilla-01f4ce96f1fe835db774acffb65b2553e1b44c0a.zip
do not count removed channels
Diffstat (limited to 'Zotlabs/Module')
-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']))) {