Explorar o código

Update active_extensions_inc.php

FusionPBX hai 6 meses
pai
achega
3fab8fc7ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {