]> dev.renevier.net Git - syj.git/commitdiff
output error message only if error code is 400
authorarno <arno@renevier.net>
Mon, 27 Sep 2010 08:37:29 +0000 (10:37 +0200)
committerarno <arno@renevier.net>
Mon, 27 Sep 2010 08:37:29 +0000 (10:37 +0200)
application/controllers/ErrorController.php

index fed3945cbd7dbf89322fb1604c1278f70d0f157f..28f321bf563c2c317440d327a21d3ad89f5ba91d 100644 (file)
@@ -41,7 +41,7 @@ class ErrorController extends Zend_Controller_Action
             $log->crit($this->view->message, $error->exception);
         }
 
-        if ($error_code != 404 and $error_code != 410 and $error->request->isXmlHttpRequest()) {
+        if ($error_code == 400 and $error->request->isXmlHttpRequest()) {
             return $this->_helper->json(array('message' => $error->exception->getMessage()));
         }