From: Roland Häder Date: Sun, 30 Sep 2012 19:40:59 +0000 (+0000) Subject: Removed old lost code, rewrote 'else' block X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1724f30cac993ceaf15871ff128ef80e1adde36;p=mailer.git Removed old lost code, rewrote 'else' block --- 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)) {