do not count removed channels

(cherry picked from commit 01f4ce96f1)
This commit is contained in:
Mario Vavti 2019-01-10 12:35:27 +00:00 committed by Mario
parent 414b7e28d3
commit 3eba0c2297

View File

@ -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']))) {