diff --git a/src/webfiori/error/TraceEntry.php b/src/webfiori/error/TraceEntry.php index 2472240..3b6a2d9 100644 --- a/src/webfiori/error/TraceEntry.php +++ b/src/webfiori/error/TraceEntry.php @@ -37,7 +37,13 @@ public function __construct(array $debugTraceEntry) { */ public function __toString() { $line = $this->getLine(); - $retVal = 'At class '.$this->getClass(); + $class = $this->getClass(); + + if ($class == 'X') { + $retVal = 'NO CLASS'; + } else { + $retVal = 'At class '.$this->getClass(); + } if ($line != 'X') { $retVal .= ' line '.$line;