- Daily/weekly/monthly reset completely rewritten
[mailer.git] / inc / modules / admin / what-config_home.php
index 2f5264047441bcc76f980653e1216eafd4cdd0bd..28f59522010e90a705717871e5a549695f187e4e 100644 (file)
@@ -68,12 +68,11 @@ case "settings": // Settings related to the index page
        break;
 
 case "target": // Set which what-file will be placed in home-page (only modules.php?module=index)
-       if (isset($_GET['home']))
-       {
+       if (isset($_GET['home'])) {
                // Set new home
-               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET index_home='%s' WHERE config=0 LIMIT 1", array($_GET['home']), __FILE__, __LINE__);
-               $_CONFIG['index_home'] = $_GET['home'];
-       }
+               UPDATE_CONFIG("index_home", $_GET['home']);
+               $_CONFIG['index_home'] = SQL_ESCAPE($_GET['home']);
+       } // END - if
 
        // Load all what menu points
        $result = SQL_QUERY("SELECT id, what, title