Project

General

Profile

« Previous | Next » 

Revision 714ecd70

Added by Marcos M 8 months ago

Don't try getting interface config without an interface. Fix #15961

View differences:

src/usr/local/www/firewall_rules.php
438 438
	$showantilockout = true;
439 439
}
440 440

  
441
if (config_path_enabled("interfaces/{$if}", "blockpriv")) {
441
if (isset($if) && config_path_enabled("interfaces/{$if}", "blockpriv")) {
442 442
	$showprivate = true;
443 443
}
444 444

  
445
if (config_path_enabled("interfaces/{$if}", "blockbogons")) {
445
if (isset($if) && config_path_enabled("interfaces/{$if}", "blockbogons")) {
446 446
	$showblockbogons = true;
447 447
}
448 448

  

Also available in: Unified diff