From 7a89d5312d78b647e9e7177877c828158f88c9a7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 May 2004 09:33:56 +0000 Subject: [PATCH] fixed loginscreen-message: was not updated if the performance patch was installed, as it changes the order of the columns in the phpgw_lang table and it did an insert without the column-names --- admin/inc/class.uimainscreen.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/inc/class.uimainscreen.inc.php b/admin/inc/class.uimainscreen.inc.php index f537e03a8a..8c8d5daf94 100644 --- a/admin/inc/class.uimainscreen.inc.php +++ b/admin/inc/class.uimainscreen.inc.php @@ -23,8 +23,8 @@ function index() { - $html = createObject('phpgwapi.html'); - $section = addslashes($_POST['section']); + $html = createObject('phpgwapi.html'); + $section = addslashes($_POST['section']); $select_lang = addslashes($_POST['select_lang']); $message = addslashes($_POST['message']); @@ -52,7 +52,7 @@ { $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_lang WHERE message_id='$section" . "_message' AND app_name='" . "$section' AND lang='$select_lang'",__LINE__,__FILE__); - $GLOBALS['phpgw']->db->query("INSERT INTO phpgw_lang VALUES ('$section" . "_message','$section','$select_lang','" + $GLOBALS['phpgw']->db->query("INSERT INTO phpgw_lang (message_id,app_name,lang,content)VALUES ('$section" . "_message','$section','$select_lang','" . $message . "')",__LINE__,__FILE__); $feedback_message = '
'.lang('message has been updated').'
';