Skip to content

Commit

Permalink
[ticket/207] Debug warning in ACP when using PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Jun 5, 2012
1 parent 5ae08f7 commit d8558ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/includes/acp/acp_portal.php
Expand Up @@ -205,7 +205,7 @@ public function main($id, $mode)
// 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']);

Expand All @@ -227,7 +227,7 @@ public function main($id, $mode)
continue;
}

if($null['type'] == 'custom')
if(isset($null['type']) && $null['type'] == 'custom')
{
continue;
}
Expand Down

0 comments on commit d8558ba

Please sign in to comment.