Upgrade - CLI (Manual & Menu): Mitigate PHP 8.x warnings, minor adjustments.

This commit is contained in:
fusionate
2024-05-13 14:19:34 -06:00
parent b369fad190
commit 2d3dca985d
10 changed files with 110 additions and 20 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2019
Portions created by the Initial Developer are Copyright (C) 2008-2024
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -799,7 +799,7 @@ if (!class_exists('modules')) {
$xml .= " </modules>\n";
$xml .= "</configuration>";
if (is_writable($_SESSION['switch']['conf']['dir'].'/autoload_configs/modules.conf.xml')) {
if (!empty($_SESSION['switch']['conf']['dir']) && is_writable($_SESSION['switch']['conf']['dir'].'/autoload_configs/modules.conf.xml')) {
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/modules.conf.xml","w");
fwrite($fout, $xml);
unset($xml);