From 8965f68c8dbe0da593379bffc73aeb3b998162b4 Mon Sep 17 00:00:00 2001 From: fusionate Date: Sun, 4 Jun 2023 01:49:32 +0000 Subject: [PATCH] Permission Defaults: Updates for PHP 8.1 --- core/groups/permissions_default.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/groups/permissions_default.php b/core/groups/permissions_default.php index 64f97c50a2..089ad09442 100644 --- a/core/groups/permissions_default.php +++ b/core/groups/permissions_default.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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");