aboutsummaryrefslogtreecommitdiffstats
path: root/MainApp.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-05-24 19:10:05 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-05-24 19:10:05 +0300
commitd462d86f086c812599f226861539829d427915e7 (patch)
treefa58374e9570ec26f61a4d904e6c767d2b54014c /MainApp.php
parent00eeae9fadc2c505f6c659bc68079584a5a63ff0 (diff)
downloadmain-d462d86f086c812599f226861539829d427915e7.tar.gz
main-d462d86f086c812599f226861539829d427915e7.tar.bz2
main-d462d86f086c812599f226861539829d427915e7.zip
fix mainview/tag with null content
Diffstat (limited to 'MainApp.php')
-rw-r--r--MainApp.php5
1 files changed, 3 insertions, 2 deletions
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);
}