1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Test for config existance

This can be not present in some testcases.
This commit is contained in:
Michal Čihař
2012-10-18 09:29:03 +02:00
parent 8a05873bb2
commit 4ada1af8cf

View File

@@ -50,12 +50,12 @@ class PMA_Error_Handler
*/
public function __destruct()
{
if (!defined('TESTSUITE') && isset($_SESSION)) {
if (isset($_SESSION)) {
if (! isset($_SESSION['errors'])) {
$_SESSION['errors'] = array();
}
if ($GLOBALS['cfg']['Error_Handler']['gather']) {
if (isset($GLOBALS['cfg']['Error_Handler']) && $GLOBALS['cfg']['Error_Handler']['gather']) {
// remember all errors
$_SESSION['errors'] = array_merge(
$_SESSION['errors'],