]> git.andy128k.dev Git - ipf.git/commitdiff
fix debug error page
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 21 Feb 2015 22:05:27 +0000 (00:05 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 21 Feb 2015 22:05:27 +0000 (00:05 +0200)
ipf/error/500_debug.php

index 1636efced9f009095faa40396e50a2a01a6c59d1..8a763bfb9725599e1d560a14b62081f7be2722ed 100644 (file)
@@ -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] : "<arg-{$index}>";
-                $args[$name] = $arg;
+            if (isset($frame['args'])) {
+                foreach ($frame['args'] as $index => $arg) {
+                    $name = array_key_exists($index, $params) ? $params[$index] : "<arg-{$index}>";
+                    $args[$name] = $arg;
+                }
             }
 
             $result[] = array(