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