do not count removed channels

This commit is contained in:
Mario Vavti 2019-01-10 13:35:27 +01:00
parent b22caef65f
commit 01f4ce96f1

View File

@ -134,7 +134,7 @@ class New_channel extends \Zotlabs\Web\Controller {
$default_role = ''; $default_role = '';
$aid = get_account_id(); $aid = get_account_id();
if($aid) { 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) intval($aid)
); );
if($r && (! intval($r[0]['total']))) { if($r && (! intval($r[0]['total']))) {