diff --git a/src/MyFuses/Exceptions/MyFusesException.php b/src/MyFuses/Exceptions/MyFusesException.php index 30de15b..3ea2ad6 100755 --- a/src/MyFuses/Exceptions/MyFusesException.php +++ b/src/MyFuses/Exceptions/MyFusesException.php @@ -157,12 +157,12 @@ static function getTraceFunctionString($trace) $out .= $trace['function'] . "(" ; - if (count($trace['args'])) { + if (isset($trace['args']) && count($trace['args'])) { $out .= " "; } $traceX = array(); - if (count($trace['args'])) { + if (isset($trace['args']) && count($trace['args'])) { foreach ($trace['args'] as $key => $value) { if (is_object($value)) { @$traceX[$key] = "" . get_class($value) . @@ -179,7 +179,7 @@ static function getTraceFunctionString($trace) } $out .= implode(", ", $traceX); - if (count($trace['args'])) { + if (isset($trace['args']) && count($trace['args'])) { $out .= " "; }