From 909cd8f9e660122fcaf15b737a5215ef77c2a30e Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 5 Oct 2010 10:41:41 -0400 Subject: References aren't needed if you aren't modifying the new variable. Remove &. --- config/Fit123/bin/cpaddon/services_captiveportal.abc | 2 +- config/bandwidthd/bandwidthd.inc | 2 +- config/snort-old/snort.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/Fit123/bin/cpaddon/services_captiveportal.abc b/config/Fit123/bin/cpaddon/services_captiveportal.abc index 42f8631f..bafb27a7 100755 --- a/config/Fit123/bin/cpaddon/services_captiveportal.abc +++ b/config/Fit123/bin/cpaddon/services_captiveportal.abc @@ -93,7 +93,7 @@ if ($_POST) { /* make sure no interfaces are bridged */ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { - $coptif = &$config['interfaces']['opt' . $i]; + $coptif = $config['interfaces']['opt' . $i]; if (isset($coptif['enable']) && $coptif['bridge'] == $pconfig['cinterface']) { $input_errors[] = "The captive portal cannot be used when one or more interfaces are bridged."; break; diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc index 39a10635..9593ad5b 100644 --- a/config/bandwidthd/bandwidthd.inc +++ b/config/bandwidthd/bandwidthd.inc @@ -86,7 +86,7 @@ function bandwidthd_install_config() { if(is_array($ifdescrs)) { foreach($ifdescrs as $int) { /* calculate interface subnet information */ - $ifcfg = &$config['interfaces'][$int]; + $ifcfg = $config['interfaces'][$int]; $subnet = gen_subnet($ifcfg['ipaddr'], $ifcfg['subnet']); $subnetmask = gen_subnet_mask($ifcfg['subnet']); if($subnet == "pppoe") { diff --git a/config/snort-old/snort.inc b/config/snort-old/snort.inc index 74a863ad..0ed53feb 100755 --- a/config/snort-old/snort.inc +++ b/config/snort-old/snort.inc @@ -927,7 +927,7 @@ function snort_rules_up_install_cron($should_install) { */ foreach($int_array as $int) { /* calculate interface subnet information */ - $ifcfg = &$config['interfaces'][$int]; + $ifcfg = $config['interfaces'][$int]; $subnet = gen_subnet($ifcfg['ipaddr'], $ifcfg['subnet']); $subnetmask = gen_subnet_mask($ifcfg['subnet']); if($subnet == "pppoe" or $subnet == "dhcp") { -- cgit v1.2.3