From e1724f30cac993ceaf15871ff128ef80e1adde36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 30 Sep 2012 19:40:59 +0000 Subject: [PATCH] Removed old lost code, rewrote 'else' block --- inc/modules/admin/what-config_points.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/inc/modules/admin/what-config_points.php b/inc/modules/admin/what-config_points.php index f444ac4459..58cebbd1a6 100644 --- a/inc/modules/admin/what-config_points.php +++ b/inc/modules/admin/what-config_points.php @@ -137,13 +137,10 @@ WHERE break; } // END - switch - if ((isSqlsValid()) && (isSqlsValid())) { - // Is INSERT there? - if (isInString('INSERT', $GLOBALS['sqls'][0])) { - $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level`=%s LIMIT 1", - array(bigintval(postRequestElement('level'))), __FILE__, __LINE__); - SQL_FREERESULT($result); - } // END - if + // Is there an array? + if ((getRequestElement('sub') != 'points') && (isSqlsValid())) { + // Default is failed-message + $message = '{--SETTINGS_NOT_SAVED--}'; if (countSqls() > 0) { // Run all SQL commands @@ -154,14 +151,11 @@ WHERE // Destroy config cache file here... rebuildCache('config', 'config'); - } else { - // Prepare failed-message - $message = '{--SETTINGS_NOT_SAVED--}'; - } + } // END - if // Remove SQL queries unsetSqls(); - } + } // END - if // Shall we display a message? if (!empty($message)) { -- 2.39.5