From 2e19a6834fb8b3f2e6f74278be9b9407d7c9d638 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 6 Feb 2013 15:46:08 -0200 Subject: Adjust backup settings to new captive portal zones --- usr/local/www/diag_backup.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index e869fec..2fe7b60 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -515,9 +515,14 @@ if ($_POST) { $savemsg = gettext("The m0n0wall configuration has been restored and upgraded to pfSense."); mark_subsystem_dirty("restore"); } - if(isset($config['captiveportal']['enable'])) { - /* for some reason ipfw doesn't init correctly except on bootup sequence */ - mark_subsystem_dirty("restore"); + if(is_array($config['captiveportal'])) { + foreach($config['captiveportal'] as $cp) { + if (isset($cp['enable'])) { + /* for some reason ipfw doesn't init correctly except on bootup sequence */ + mark_subsystem_dirty("restore"); + break; + } + } } setup_serial_port(); if(is_interface_mismatch() == true) { -- cgit v1.1