From de36d629b6475df031a086a84d871af3d39cab72 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Fri, 30 Nov 2012 19:40:54 +0000 Subject: [PATCH] Don't add any extra data to failed ajax requests --- libraries/Response.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Response.class.php b/libraries/Response.class.php index 8b2885e17b..1bc183293c 100644 --- a/libraries/Response.class.php +++ b/libraries/Response.class.php @@ -294,7 +294,7 @@ class PMA_Response unset($this->_JSON['message']); } - if ($this->_isAjaxPage) { + if ($this->_isAjaxPage && $this->_isSuccess) { $this->addJSON('_title', $this->getHeader()->getTitleTag()); $menuHash = $this->getHeader()->getMenu()->getHash();