Project

General

Profile

« Previous | Next » 

Revision 7dbaa205

Added by Ermal Luçi over 15 years ago

Catch up with php5 changes on array.

View differences:

usr/local/pkg/routed/routed.inc
32 32
	global $config;
33 33
	$gw = "";
34 34

  
35
	if (!is_array($config['installedpackages']['routed']))
36
		return;
37
	if (!is_array($config['installedpackages']['routed']['config']))
38
		return;
35 39
	if (isset($config['installedpackages']['routed']['config'][0]['enable']) &&
36
      $config['installedpackages']['routed']['config'][0]['enable'] == "on") {
40
		$config['installedpackages']['routed']['config'][0]['enable'] == "on") {
37 41
		/* if user selected individual interfaces */
38 42
		$ifdescrs = array ("wan", "lan");
39 43
		for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
......
108 112
	start_routed();
109 113
}
110 114

  
111
?>
115
?>

Also available in: Unified diff