From d462d86f086c812599f226861539829d427915e7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 24 May 2011 19:10:05 +0300 Subject: fix mainview/tag with null content --- MainApp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MainApp.php') diff --git a/MainApp.php b/MainApp.php index ac58db5..759a522 100644 --- a/MainApp.php +++ b/MainApp.php @@ -142,9 +142,10 @@ class MainApp static function error($msg) { $err = array('error' => $msg); + header('HTTP/1.0 500 Internal Server Error'); // send it to the browser - self::json($err); - trigger_error($msg, E_USER_NOTICE); + //self::json($err); + //trigger_error($msg, E_USER_NOTICE); // and log it locally self::log($msg); } -- cgit v1.2.3