]> git.mxchange.org Git - mailer.git/commitdiff
Removed old lost code, rewrote 'else' block
authorRoland Häder <roland@mxchange.org>
Sun, 30 Sep 2012 19:40:59 +0000 (19:40 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 30 Sep 2012 19:40:59 +0000 (19:40 +0000)
inc/modules/admin/what-config_points.php

index f444ac4459569a27946b6757f52a1b6dcfad68ec..58cebbd1a68bee46ce5f2dc40e848e65d173345a 100644 (file)
@@ -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 = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
 
                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 = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
-               }
+               } // END - if
 
                // Remove SQL queries
                unsetSqls();
-       }
+       } // END - if
 
        // Shall we display a message?
        if (!empty($message)) {