From 43f143a211c75138d09ceb89acc48ea7d5c31ca9 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sun, 11 Jan 2015 16:12:36 +0100 Subject: Fix for issue #763 Error creating new channel within the limits of the subscription plan --- mod/manage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/manage.php') diff --git a/mod/manage.php b/mod/manage.php index 00c6db7f0..6fb835696 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -131,7 +131,7 @@ function manage_content(&$a) { intval(get_account_id()), intval(PAGE_REMOVED) ); - $limit = service_class_fetch(local_user(),'total_identities'); + $limit = account_service_class_fetch(get_account_id(),'total_identities'); if($limit !== false) { $channel_usage_message = sprintf( t("You have created %1$.0f of %2$.0f allowed channels."), $r[0]['total'], $limit); } -- cgit v1.2.3