From d8558bafb08982deabff720eeaed7fcefa5b366d Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 5 Jun 2012 22:43:56 +0200 Subject: [PATCH] [ticket/207] Debug warning in ACP when using PHP 5.4 --- root/includes/acp/acp_portal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/includes/acp/acp_portal.php b/root/includes/acp/acp_portal.php index 509c6d37..15894c0d 100644 --- a/root/includes/acp/acp_portal.php +++ b/root/includes/acp/acp_portal.php @@ -205,7 +205,7 @@ class acp_portal // We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to... foreach ($display_vars['vars'] as $config_name => $null) { - if ($submit && ($null['type'] == 'custom' || (isset($null['submit_type']) && $null['submit_type'] == 'custom'))) + if ($submit && ((isset($null['type']) && $null['type'] == 'custom') || (isset($null['submit_type']) && $null['submit_type'] == 'custom'))) { $func = array($c_class, $null['submit']); @@ -227,7 +227,7 @@ class acp_portal continue; } - if($null['type'] == 'custom') + if(isset($null['type']) && $null['type'] == 'custom') { continue; }