You've already forked phpmyadmin
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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user