From 59fed33797221003ef5ec730946f84588f3606a4 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 30 Jul 2019 11:54:14 +0200 Subject: Do not control limits on service class settings with 0 values --- include/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/account.php b/include/account.php index 5f0c8737f..5dd91f909 100644 --- a/include/account.php +++ b/include/account.php @@ -668,7 +668,7 @@ function downgrade_accounts() { function service_class_allows($uid, $property, $usage = false) { $limit = service_class_fetch($uid, $property); - if($limit === false) + if($limit == false) return true; // No service class set => everything is allowed $limit = engr_units_to_bytes($limit); -- cgit v1.2.3