Browse Source

Update active_extensions_inc.php

FusionPBX 4 months ago
parent
commit
3fab8fc7ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      active_extensions_inc.php

+ 1 - 1
active_extensions_inc.php

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