From 72b427a68c4d2f111e142e8ca93ac7a764c8c5b0 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 22 Feb 2015 00:05:27 +0200 Subject: [PATCH] fix debug error page --- ipf/error/500_debug.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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( -- 2.49.0