From 96f7bdc67f438a6cf3a6f820d9b2b6d60747edb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Skej=C3=B8?= Date: Mon, 25 May 2009 11:36:19 +0200 Subject: [PATCH] AOOSException.php: Proper check of file and line --- AOOSException.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AOOSException.php b/AOOSException.php index 7a863e6..0b3a5d9 100644 --- a/AOOSException.php +++ b/AOOSException.php @@ -70,7 +70,9 @@ class AOOSException extends Exception { continue; } - $str .= "".$row["class"]."->".$row["function"]." in ".$row["file"]." on line ".$row["line"]."
"; + $file = in_array("file", array_keys($row)) ? $row["file"] : "unknown file"; + $line = in_array("line", array_keys($row)) ? $row["line"] : "unknown line"; + $str .= "".$row["class"]."->".$row["function"]." in ".$file." on line ".$line."
"; } } $str .= ""; -- 2.11.4.GIT