Project

General

Profile

« Previous | Next » 

Revision 00243d59

Added by Jim Pingle about 14 years ago

Fix select detection code for the RADIUS NAS IP. Fixes #1648

View differences:

usr/local/www/services_captiveportal.php
593 593
						$ipaddr = get_interface_ip($ifdesc);
594 594
						if (is_ipaddr($ipaddr)) {
595 595
							$selected = "";
596
							if ($ipaddr == $pconfig['radiussrcip_attribute'])
597
								$ifdesc = "selected";
596
							if ($ifdesc == $pconfig['radiussrcip_attribute'])
597
								$selected = "selected";
598 598
							echo "<option value='{$ifdesc}' {$selected}>{$ifdescr} - {$ipaddr}</option>\n";
599 599
						}
600 600
					}

Also available in: Unified diff