Project

General

Profile

« Previous | Next » 

Revision 4e6b0a0e

Added by robi robi about 11 years ago

Update services_ntpd.php

Add validation for the case of no server specified, fall back to pool.ntp.org

View differences:

usr/local/www/services_ntpd.php
83 83
				if (!empty($_POST["servselect{$i}"])) $config['ntpd']['noselect'].= "{$tserver} ";
84 84
			}
85 85
		}
86
		if (trim($timeservers) == "")
87
			$timeservers = "pool.ntp.org";
86 88
		$config['system']['timeservers'] = trim($timeservers);
87 89

  
88 90
		if (!empty($_POST['ntporphan']) && ($_POST['ntporphan'] < 17) && ($_POST['ntporphan'] != '12'))

Also available in: Unified diff