Commit 01f4ce96 authored by Mario's avatar Mario

do not count removed channels

parent b22caef6
Pipeline #102670 passed with stage
in 6 minutes and 34 seconds
...@@ -134,7 +134,7 @@ class New_channel extends \Zotlabs\Web\Controller { ...@@ -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']))) {
......
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