mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check that we have an array to avoid php warnings++
This commit is contained in:
parent
c535b28cff
commit
6cf64278ee
@ -266,7 +266,7 @@ function captiveportal_configure_zone($cpcfg) {
|
||||
$croninterval = 60;
|
||||
|
||||
/* write portal page */
|
||||
if ($cpcfg['page']['htmltext'])
|
||||
if (is_array($cpcfg['page']) && $cpcfg['page']['htmltext'])
|
||||
$htmltext = base64_decode($cpcfg['page']['htmltext']);
|
||||
else {
|
||||
/* example/template page */
|
||||
@ -320,7 +320,7 @@ function captiveportal_configure_zone($cpcfg) {
|
||||
}
|
||||
|
||||
/* write logout page */
|
||||
if ($cpcfg['page']['logouttext'])
|
||||
if (is_array($cpcfg['page']) && $cpcfg['page']['logouttext'])
|
||||
$logouttext = base64_decode($cpcfg['page']['logouttext']);
|
||||
else {
|
||||
/* example page */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user