浏览代码

Update active_extensions_inc.php

FusionPBX 4 月之前
父节点
当前提交
3fab8fc7ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      active_extensions_inc.php

+ 1 - 1
active_extensions_inc.php

@@ -65,7 +65,7 @@
 	//$sql .= "where domain_uuid = '$domain_uuid' ";
 	//$sql .= "and enabled = 'true' ";
 	if (!(if_group("admin") || if_group("superadmin"))) {
-		if (count($_SESSION['user']['extension']) > 0) {
+		if (!empty($_SESSION['user']['extension'])) {
 			$sql .= "and (";
 			$x = 0;
 			foreach($_SESSION['user']['extension'] as $row) {