[imp] Undefined index: imp in /www/webmail/config/hooks.php on line 6
Jan Schneider
jan at horde.org
Thu May 19 08:57:53 PDT 2005
Zitat von Thiago Vinhas de Moraes <tvinhas at codin.rj.gov.br>:
> Hi,
>
> I'm using a customized hook to the login proccess, where the provided login
> will be completed by @codin.rj.gov.br. Here is the hook:
>
> <?php
> if (!function_exists('_imp_hook_vinfo')) {
> function _imp_hook_vinfo($type = 'username')
> {
> $codin = 'codin.rj.gov.br';
> $userID = $_SESSION['imp']['user'];
>
> return $userID . '@' . $codin;
> }
> }
>
>
> When I login, I get the following error:
>
> Notice: Undefined index: imp in /www/webmail/config/hooks.php on line 6
>
>
> It's working, but how can I fix this notice error?
You don't care about the $type parameter. $type is 'vdomain' if the
user is not logged in yet.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list