- LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_NO_MORE_ALLOWED);
-} elseif (isset($_POST['ok'])) {
+ loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_NO_MORE_ALLOWED'));
+} elseif ((isFormSent()) && (isPostRequestElementSet(('limited')))) {
+ // Is limitation "no" and "limit" is > 0?
+ if ((postRequestElement('limited') != 'Y') && ((isPostRequestElementSet(('limit'))) && (postRequestElement('limit') > 0)) || (!isPostRequestElementSet(('limit')))) {
+ // Set it to unlimited
+ setRequestPostElement('limit', 0);
+ } // END - if
+