Project

General

Profile

« Previous | Next » 

Revision 02b8bfae

Added by Renato Botelho over 12 years ago

Fix get_parent_interface() for ppp interfaces, it was using an unset variable $ppp_if

View differences:

etc/inc/interfaces.inc
3597 3597
				if (empty($parents))
3598 3598
					if (is_array($config['ppps']['ppp']))
3599 3599
						foreach ($config['ppps']['ppp'] as $pppidx => $ppp) {
3600
							if ($ppp_if == $ppp['if']) {
3600
							if ($ifcfg['if'] == $ppp['if']) {
3601 3601
								$ports = explode(',', $ppp['ports']);
3602 3602
								foreach ($ports as $pid => $parent_if) 
3603 3603
									$parents[$pid] = get_real_interface($parent_if);

Also available in: Unified diff