From ef35214f93f9b074a68bece85208f3e14b262c32 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 26 May 2016 11:28:30 -0600 Subject: [PATCH] Fix the syntax. --- app/modules/module_edit.php | 4 ++-- resources/switch.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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();