Dashboard: Updates for PHP 8.1
This commit is contained in:
parent
8021a71647
commit
198ee84d9a
|
|
@ -31,9 +31,11 @@
|
||||||
//if config.conf file does not exist then redirect to the install page
|
//if config.conf file does not exist then redirect to the install page
|
||||||
if (file_exists("/usr/local/etc/fusionpbx/config.conf")){
|
if (file_exists("/usr/local/etc/fusionpbx/config.conf")){
|
||||||
//BSD
|
//BSD
|
||||||
} elseif (file_exists("/etc/fusionpbx/config.conf")){
|
}
|
||||||
|
elseif (file_exists("/etc/fusionpbx/config.conf")){
|
||||||
//Linux
|
//Linux
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
header("Location: /core/install/install.php");
|
header("Location: /core/install/install.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
@ -85,7 +87,7 @@
|
||||||
$sql .= ")\n";
|
$sql .= ")\n";
|
||||||
$sql .= "order by dashboard_order asc \n";
|
$sql .= "order by dashboard_order asc \n";
|
||||||
$database = new database;
|
$database = new database;
|
||||||
$dashboard = $database->select($sql, $parameters, 'all');
|
$dashboard = $database->select($sql, $parameters ?? null, 'all');
|
||||||
unset($sql, $parameters);
|
unset($sql, $parameters);
|
||||||
|
|
||||||
//get http post variables and set them to php variables
|
//get http post variables and set them to php variables
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue