diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php index 37685be3cc..d9081cabd8 100644 --- a/app/modules/module_edit.php +++ b/app/modules/module_edit.php @@ -114,7 +114,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $db->exec(check_sql($sql)); unset($sql); - $module new modules;; + $module = new modules;; $module->xml(); $_SESSION["message"] = $text['message-add']; @@ -135,7 +135,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $db->exec(check_sql($sql)); unset($sql); - $module new modules;; + $module = new modules;; $module->xml(); $_SESSION["message"] = $text['message-update']; diff --git a/resources/switch.php b/resources/switch.php index 373e1b8cab..39306a9e6f 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -1433,8 +1433,9 @@ if (!function_exists('save_switch_xml')) { } if (file_exists($_SERVER["PROJECT_ROOT"]."/app/modules/app_config.php")) { require_once $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."app/modules/resources/classes/modules.php"; - $module new modules; + $module = new modules; $module->xml(); + //$msg = $module->msg; } if (file_exists($_SERVER["PROJECT_ROOT"]."/app/vars/app_config.php")) { save_var_xml();