Don't add any extra data to failed ajax requests

This commit is contained in:
Rouslan Placella 2012-11-30 19:40:54 +00:00
parent 100b07c10d
commit de36d629b6

View File

@ -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();