do not count removed channels
This commit is contained in:
parent
b22caef65f
commit
01f4ce96f1
@ -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']))) {
|
||||||
|
Reference in New Issue
Block a user