Commit 3eba0c22 authored by Mario's avatar Mario Committed by Mario

do not count removed channels


(cherry picked from commit 01f4ce96)
parent 414b7e28
Pipeline #102671 passed with stage
in 6 minutes and 45 seconds
......@@ -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']))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment