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