Permission Defaults: Updates for PHP 8.1
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
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.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//check permisions
|
//check permisions
|
||||||
if (!$included) {
|
if (empty($included) || !$included) {
|
||||||
//set the include path
|
//set the include path
|
||||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
||||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
$permission->restore();
|
$permission->restore();
|
||||||
|
|
||||||
//redirect the users
|
//redirect the users
|
||||||
if (!$included) {
|
if (empty($included) || !$included) {
|
||||||
//show a message to the user
|
//show a message to the user
|
||||||
message::add($text['message-restore']);
|
message::add($text['message-restore']);
|
||||||
header("Location: groups.php");
|
header("Location: groups.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user