Browse Source

Functions: Update for PHP 8.1

fusionate 2 năm trước cách đây
mục cha
commit
416b451334
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      resources/functions.php

+ 1 - 1
resources/functions.php

@@ -279,7 +279,7 @@
 			//set default
 				$result = false;
 			//permissions exist
-				if (is_array($_SESSION["permissions"]) && @sizeof($_SESSION['permissions']) != 0) {
+				if (!empty($_SESSION["permissions"]) && is_array($_SESSION["permissions"]) && @sizeof($_SESSION['permissions']) != 0) {
 					//array
 					if (is_array($permission) && @sizeof($permission) != 0) {
 						if ($operator == 'and') {