Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / modules / admin / what-config_stats.php
index d76591812a102576cb51734f40ad472794980d3d..ece898a4d2fae3c15df348881d3ed53c5b370449 100644 (file)
@@ -41,9 +41,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR("admin", __FILE__);
 
 // Was the form submitted?
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Save settings
-       ADMIN_SAVE_SETTINGS($_POST);
+       ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Guest stats
        switch (getConfig('guest_stats'))