From: Michael M Slusarz Date: Fri, 5 Dec 2008 20:00:44 +0000 (-0700) Subject: Missing variable. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0f9591745fdc879ed7c9714023cfaae5d475055c;p=horde.git Missing variable. --- diff --git a/imp/lib/base.php b/imp/lib/base.php index 21fa97462..3f64b6a5f 100644 --- a/imp/lib/base.php +++ b/imp/lib/base.php @@ -47,7 +47,7 @@ require_once 'Horde/Autoloader.php'; Horde_Autoloader::addClassPattern('/^IMP_/', IMP_BASE . '/lib/'); // Registry. -$s_ctrl = null; +$s_ctrl = 0; switch (Util::nonInputVar('session_control')) { case 'netscape': if ($browser->isBrowser('mozilla')) { @@ -63,7 +63,7 @@ case 'readonly': $s_ctrl = HORDE_SESSION_READONLY; break; } -$registry = &Registry::singleton(); +$registry = &Registry::singleton($s_ctrl); // Need to explicitly load IMP.php require_once IMP_BASE . '/lib/IMP.php';