Obsoleted parameters to SQL_AFFECTED_ROWS() removed, OPEN_TABLE() and CLOSE_TABLE...
[mailer.git] / inc / modules / admin / what-config_refid.php
index 1ecb724..ea4f977 100644 (file)
@@ -40,21 +40,18 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-if (isset($_POST['ok']))
-{
+if (isset($_POST['ok'])) {
        // Save data
        ADMIN_SAVE_SETTINGS($_POST);
-}
- else
-{
+} else {
        // Prepare contants for the template
-       ADD_MEMBER_SELECTION_BOX(false, true, true, $_CONFIG['def_refid']);
+       ADD_MEMBER_SELECTION_BOX($_CONFIG['def_refid'], false, true, true);
 
-       switch ($_CONFIG['refid_target'])
-       {
+       switch ($_CONFIG['refid_target'])       {
                case "index":    define('__DEF_RT_INDEX', " selected=\"selected\""); define('__DEF_RT_REGISTER', "");          break;
                case "register": define('__DEF_RT_INDEX', "");          define('__DEF_RT_REGISTER', " selected=\"selected\""); break;
        }
+
        // Load template
        LOAD_TEMPLATE("admin_config_refid");
 }