aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/account.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/account.php b/include/account.php
index 5dd91f909..7546657fd 100644
--- a/include/account.php
+++ b/include/account.php
@@ -668,10 +668,12 @@ 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);
+ if($limit == 0)
+ return true; // 0 means no limits
if($usage === false) {
// We use negative values for not allowed properties in a subscriber plan
return ((x($limit)) ? (bool) $limit : true);