From 9ea1d6e8af731606d8876c2e22c951946ac98a14 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Wed, 31 Jul 2019 17:09:24 +0200 Subject: Do not limit channel if service class property value set with 0 --- include/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/account.php b/include/account.php index 7546657fd..4bd218a5b 100644 --- a/include/account.php +++ b/include/account.php @@ -761,7 +761,7 @@ function service_class_fetch($uid, $property) { if(! is_array($arr) || (! count($arr))) return false; - return((array_key_exists($property, $arr)) ? $arr[$property] : false); + return((array_key_exists($property, $arr) && $arr[$property]) ? $arr[$property] : false); } /** -- cgit v1.2.3