From: Andrey Kutejko Date: Sat, 21 Feb 2015 22:05:27 +0000 (+0200) Subject: fix debug error page X-Git-Tag: 0.6~56 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=72b427a68c4d2f111e142e8ca93ac7a764c8c5b0;p=ipf.git fix debug error page --- diff --git a/ipf/error/500_debug.php b/ipf/error/500_debug.php index 1636efc..8a763bf 100644 --- a/ipf/error/500_debug.php +++ b/ipf/error/500_debug.php @@ -97,9 +97,11 @@ class IPF_Server_Error_Page_Debug extends IPF_Error_Page } $args = array(); - foreach ($frame['args'] as $index => $arg) { - $name = array_key_exists($index, $params) ? $params[$index] : ""; - $args[$name] = $arg; + if (isset($frame['args'])) { + foreach ($frame['args'] as $index => $arg) { + $name = array_key_exists($index, $params) ? $params[$index] : ""; + $args[$name] = $arg; + } } $result[] = array(