[bugs] [Bug 1042] New - Login screen generates an error when get_imp_vinfodefined ...

bugs@bugs.horde.org bugs@bugs.horde.org
Wed, 4 Sep 2002 13:39:54 -0300


http://bugs.horde.org/show_bug.cgi?id=1042

*** shadow/1042	Wed Sep  4 13:39:54 2002
--- shadow/1042.tmp.5514	Wed Sep  4 13:39:54 2002
***************
*** 0 ****
--- 1,36 ----
+ Bug#: 1042
+ Product: Horde
+ Version: 2.3 Unstable
+ Platform: Mozilla 5.x
+ OS/Version: FreeBSD
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: scrappy@hub.org               
+ URL: 
+ Summary: Login screen generates an error when get_imp_vinfo defined ...
+ 
+ 
+ @
+ Notice: Undefined index: imp in
+ /usr/local/www/pluto.hub.org/horde/imp/config/conf.php on line 300
+ @pluto.hub.org
+ 
+ my functions looks like:
+ 
+     function imp_get_vinfo ($type = 'vdomain') {
+         global $conf, $imp;
+ 
+         $vdomain = getenv('HTTP_HOST');
+         $vdomain = preg_replace('|^webmail\.|i', '', $vdomain);
+         $vdomain = strtolower($vdomain);
+ 
+         return $_SESSION['imp']['user'] . '@' . $vdomain;
+     }
+ 
+ and it works as expected, but on the login screen, the $_SESSION['imp']['user']
+ hasn't been defined yet, so generates an error ...