Skip to content

Commit

Permalink
Test for config existance
Browse files Browse the repository at this point in the history
This can be not present in some testcases.
  • Loading branch information
nijel committed Oct 18, 2012
1 parent 8a05873 commit 4ada1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/Error_Handler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public function __construct()
*/
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'],
Expand Down

0 comments on commit 4ada1af

Please sign in to comment.