From 452eb31ed5b9e87a853697ad0aedf997683fe1da Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sat, 25 Jan 2014 21:05:30 +0100 Subject: captive portal, don't generate rules for disabled portal --- etc/inc/filter.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index cabc3d6..53abee5 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2633,6 +2633,8 @@ EOD; */ if(is_array($config['captiveportal'])) { foreach ($config['captiveportal'] as $cpcfg) { + if(!isset($cpcfg['enable'])) + continue; $cpinterfaces = explode(",", $cpcfg['interface']); $cpiflist = array(); $cpiplist = array(); -- cgit v1.1