mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix v_settings update sql command in app/settings/app_defaults.php.
This commit is contained in:
@@ -81,10 +81,10 @@ if ($domains_processed == 1) {
|
||||
$event_socket_ip_address = $_SESSION['event_socket_ip_address'];
|
||||
if(isset($_SESSION['event_socket_port'])) { $event_socket_port = $_SESSION['event_socket_port']; }
|
||||
if(isset($_SESSION['event_socket_password'])) { $event_socket_password = $_SESSION['event_socket_password']; }
|
||||
$sql = "update v_settings ";
|
||||
$sql .= "set event_socket_ip_address = '$event_socket_ip_address' ";
|
||||
$sql .= "set event_socket_port = '$event_socket_port' ";
|
||||
$sql .= "set event_socket_password = '$event_socket_password' ";
|
||||
$sql = "update v_settings set ";
|
||||
$sql .= "event_socket_ip_address = '$event_socket_ip_address', ";
|
||||
$sql .= "event_socket_port = '$event_socket_port', ";
|
||||
$sql .= "event_socket_password = '$event_socket_password' ";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
|
||||
@@ -26,14 +26,11 @@
|
||||
|
||||
//if there are no items in the menu then add the default menu
|
||||
if ($domains_processed == 1) {
|
||||
|
||||
require_once "resources/classes/menu.php";
|
||||
$o = new menu;
|
||||
$o->db = $db;
|
||||
$o->menu_default();
|
||||
unset($menu);
|
||||
|
||||
|
||||
} //if
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user