forked from Public/pics
Fix error handling for functions without arguments
This commit is contained in:
parent
d1741f2478
commit
b2bcb6a124
@ -96,6 +96,8 @@ class ErrorHandler
|
||||
$object = isset($call['class']) ? $call['class'] . $call['type'] : '';
|
||||
|
||||
$args = [];
|
||||
if (isset($call['args']))
|
||||
{
|
||||
foreach ($call['args'] as $j => $arg)
|
||||
{
|
||||
if (is_array($arg))
|
||||
@ -103,6 +105,7 @@ class ErrorHandler
|
||||
elseif (is_object($arg))
|
||||
$args[$j] = var_dump($arg);
|
||||
}
|
||||
}
|
||||
|
||||
$buffer .= '#' . str_pad($i, 3, ' ')
|
||||
. $object . $call['function'] . '(' . implode(', ', $args) . ')'
|
||||
|
Loading…
Reference in New Issue
Block a user