summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-11-06 11:23:04 +0000
committerErmal <eri@pfsense.org>2011-11-06 11:23:04 +0000
commitc535b28cffddea4ae7b6c918d25af546cae704a4 (patch)
treecba488518d82bb655948e05b6070df787b322988 /etc
parent4246293ea3c5940eb539676a718b274fb9e303bd (diff)
downloadpfsense-c535b28cffddea4ae7b6c918d25af546cae704a4.zip
pfsense-c535b28cffddea4ae7b6c918d25af546cae704a4.tar.gz
Check that we have an array to avoid php warnings
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index a3aad2c..42779ae 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -293,7 +293,7 @@ function captiveportal_configure_zone($cpcfg) {
}
/* write error page */
- if ($cpcfg['page']['errtext'])
+ if (is_array($cpcfg['page']) && $cpcfg['page']['errtext'])
$errtext = base64_decode($cpcfg['page']['errtext']);
else {
/* example page */
OpenPOWER on IntegriCloud