Project

General

Profile

« Previous | Next » 

Revision 064b183b

Added by Scott Ullrich over 15 years ago

Silence foreach() error when no PPP interfaces exist

View differences:

etc/inc/interfaces.inc
843 843
	global $config;
844 844
	if($g['booting']) 
845 845
		conf_mount_rw();
846
	foreach ($config['ppps']['ppp'] as $ppp) {
847
		$dev = substr($ppp['port'], 5);
848
		interface_ppp_configure($dev);
846
	if($config['ppps']['ppp']) {
847
		foreach($config['ppps']['ppp'] as $ppp) {
848
			$dev = substr($ppp['port'], 5);
849
			interface_ppp_configure($dev);
850
		}
849 851
	}
850 852
	if(!$g['booting']) 
851 853
		conf_mount_ro();

Also available in: Unified diff