aboutsummaryrefslogtreecommitdiffstats
path: root/mod/manage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-16 14:48:07 -0800
committerfriendica <info@friendica.com>2014-02-16 14:48:07 -0800
commit16cd9e2a7e111b4c1ea8babb69862cb82775fa09 (patch)
tree6e9cc13ab2b702e52d2717413600a62ad610fa0a /mod/manage.php
parent663dd39015e3e7ef25dda94f34bfb40c7e494325 (diff)
downloadvolse-hubzilla-16cd9e2a7e111b4c1ea8babb69862cb82775fa09.tar.gz
volse-hubzilla-16cd9e2a7e111b4c1ea8babb69862cb82775fa09.tar.bz2
volse-hubzilla-16cd9e2a7e111b4c1ea8babb69862cb82775fa09.zip
don't include deleted channels in number of channels service class checks
Diffstat (limited to 'mod/manage.php')
-rw-r--r--mod/manage.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/manage.php b/mod/manage.php
index a2f65b271..0772e2d61 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -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) {