Project

General

Profile

« Previous | Next » 

Revision eed8df6f

Added by Jim Pingle over 12 years ago

Only apply this test for radius servers.

View differences:

usr/local/www/system_authservers.php
213 213
	if (auth_get_authserver($pconfig['name']) && !isset($id))
214 214
		$input_errors[] = gettext("An authentication server with the same name already exists.");
215 215

  
216
	if (isset($_POST['radius_timeout']) && (!is_numeric($_POST['radius_timeout']) || (is_numeric($_POST['radius_timeout']) && ($_POST['radius_timeout'] <= 0))))
216
	if (($pconfig['type'] == "radius") && isset($_POST['radius_timeout']) && (!is_numeric($_POST['radius_timeout']) || (is_numeric($_POST['radius_timeout']) && ($_POST['radius_timeout'] <= 0))))
217 217
		$input_errors[] = gettext("RADIUS Timeout value must be numeric and positive.");
218 218

  
219 219
	/* if this is an AJAX caller then handle via JSON */

Also available in: Unified diff