Project

General

Profile

« Previous | Next » 

Revision 51e76899

Added by Ermal Luçi over 10 years ago

Fixes #4370 Use the curlies to not confuse php

View differences:

etc/inc/system.inc
1727 1727
	}
1728 1728
	
1729 1729

  
1730
	if (empty($config['ntpd']['interface']))
1730
	if (empty($config['ntpd']['interface'])) {
1731 1731
		if (is_array($config['installedpackages']['openntpd']) && !empty($config['installedpackages']['openntpd']['config'][0]['interface']))
1732 1732
			$interfaces = explode(",", $config['installedpackages']['openntpd']['config'][0]['interface']);
1733 1733
		else
1734 1734
			$interfaces = array();
1735
	else
1735
	} else
1736 1736
		$interfaces = explode(",", $config['ntpd']['interface']);
1737 1737

  
1738 1738
	if (is_array($interfaces) && count($interfaces)) {

Also available in: Unified diff