From: Jan Schneider Date: Wed, 15 Dec 2010 22:46:19 +0000 (+0000) Subject: Fix running test.php on a bootstrapped Horde installation. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=81c39065843c4d7a3243d8bd6f1b70433b69509a;p=horde.git Fix running test.php on a bootstrapped Horde installation. --- diff --git a/horde/test.php b/horde/test.php index 39cdea87e..5b14f82f8 100644 --- a/horde/test.php +++ b/horde/test.php @@ -86,7 +86,7 @@ if (!class_exists($classname)) { $test_ob = new $classname(); /* Register a session. */ -if (!$session->exists('horde', 'test_count')) { +if ($session && !$session->exists('horde', 'test_count')) { $session->set('horde', 'test_count', 0); } @@ -94,7 +94,7 @@ if (!$session->exists('horde', 'test_count')) { $test_templates = HORDE_TEMPLATES . '/test'; /* Self URL. */ -$url = Horde::selfUrl(); +$url = Horde::url('test.php'); $self_url = $url->copy()->add('app', $app); /* Handle special modes. */