Mahor rewrite:
[mailer.git] / inc / libs / register_functions.php
index f90e1b8d3083313fe27b46d4878a18c6db1102bf..93623b45eab5876e9b559c2125fd7b0b2c54e3c5 100644 (file)
@@ -131,7 +131,7 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
                                'id'    => $id,
                        );
 
-                       if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id])))) {
+                       if (($_POST['cat'][$id] == "Y") || ((getConfig('register_default') == "Y") && (empty($_POST['cat'][$id])))) {
                                $content['def_y'] = " checked=\"checked\"";
                        } else {
                                $content['def_n'] = " checked=\"checked\"";