瀏覽代碼

Permission Defaults: Updates for PHP 8.1

fusionate 2 年之前
父節點
當前提交
a457521f0b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/groups/permissions_default.php

+ 3 - 3
core/groups/permissions_default.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2014
+	Portions created by the Initial Developer are Copyright (C) 2008-2023
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -25,7 +25,7 @@
 */
 
 //check permisions
-	if (!$included) {
+	if (empty($included) || !$included) {
 		//set the include path
 		$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
 		set_include_path(parse_ini_file($conf[0])['document.root']);
@@ -53,7 +53,7 @@
 	$permission->restore();
 
 //redirect the users
-	if (!$included) {
+	if (empty($included) || !$included) {
 		//show a message to the user
 		message::add($text['message-restore']);
 		header("Location: groups.php");