Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-07-15 17:26:25 +02:00
commit b2a7b91495
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class PMA_Error_Handler
/**
* holds errors to be displayed or reported later ...
*
* @var array of PMA_Error
* @var PMA_Error[]
*/
protected $errors = array();
@ -86,7 +86,7 @@ class PMA_Error_Handler
/**
* returns array with all errors
*
* @return array PMA_Error_Handler::$_errors
* @return PMA_Error[]
*/
protected function getErrors()
{
@ -98,7 +98,7 @@ class PMA_Error_Handler
* returns the errors occurred in the current run only.
* Does not include the errors save din the SESSION
*
* @return array of current errors
* @return PMA_Error[]
*/
public function getCurrentErrors()
{

View File

@ -102,6 +102,7 @@ function PMA_getReportData($exception_type = 'js')
return array();
}
foreach ($_SESSION['prev_errors'] as $errorObj) {
/* @var $errorObj PMA_Error */
if ($errorObj->getLine()
&& $errorObj->getType()
&& $errorObj->getNumber() != E_USER_WARNING