don't include deleted channels in number of channels service class checks

This commit is contained in:
friendica
2014-02-16 14:48:07 -08:00
parent 663dd39015
commit 16cd9e2a7e
2 changed files with 11 additions and 6 deletions

View File

@@ -55,8 +55,9 @@ function manage_content(&$a) {
}
}
$r = q("select count(channel_id) as total from channel where channel_account_id = %d ",
intval(get_account_id())
$r = q("select count(channel_id) as total from channel where channel_account_id = %d and not ( channel_pageflags & %d )",
intval(get_account_id()),
intval(PAGE_REMOVED)
);
$limit = service_class_fetch(local_user(),'total_identities');
if($limit !== false) {