Fix error handling for functions without arguments

This commit is contained in:
Aaron van Geffen 2023-03-15 09:49:55 +01:00
parent d1741f2478
commit b2bcb6a124

View File

@ -96,12 +96,15 @@ class ErrorHandler
$object = isset($call['class']) ? $call['class'] . $call['type'] : '';
$args = [];
foreach ($call['args'] as $j => $arg)
if (isset($call['args']))
{
if (is_array($arg))
$args[$j] = print_r($arg, true);
elseif (is_object($arg))
$args[$j] = var_dump($arg);
foreach ($call['args'] as $j => $arg)
{
if (is_array($arg))
$args[$j] = print_r($arg, true);
elseif (is_object($arg))
$args[$j] = var_dump($arg);
}
}
$buffer .= '#' . str_pad($i, 3, ' ')