Missing variable.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Dec 2008 20:00:44 +0000 (13:00 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Dec 2008 20:01:22 +0000 (13:01 -0700)
imp/lib/base.php

index 21fa974..3f64b6a 100644 (file)
@@ -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';