Fix for fatal error and naming convention applied
[mailer.git] / inc / modules / admin / what-config_order.php
index 3bf7eed2470cbfb1f46900b48e06589a23ab9381..03a1d0dad0f9b464dd605eec922810508d19ce70 100644 (file)
@@ -45,13 +45,12 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR('admin', __FILE__);
 
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
        // Save data
        ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Prepare constants for the template
-       switch (getConfig('order_max_full'))
-       {
+       switch (getConfig('order_max_full')) {
                case 'ORDER':
                        define('__ORDER_DEFAULT', ' checked="checked"');
                        define('__MAX_DEFAULT'  , '');
@@ -67,8 +66,7 @@ if (IS_FORM_SENT()) {
        define('__MIN_VALUE', getConfig('order_min'));
 
        // Sorting mode (ascending / descending)
-       switch (getConfig('order_mode'))
-       {
+       switch (getConfig('order_mode')) {
                case "ASC":
                        define('__ASC_DEFAULT' , ' selected="selected"');
                        define('__DESC_DEFAULT', '');
@@ -134,5 +132,6 @@ if (IS_FORM_SENT()) {
        // Load template
        LOAD_TEMPLATE("admin_config_order");
 }
+
 //
 ?>