From: Jan Schneider Date: Mon, 20 Jul 2009 13:16:46 +0000 (+0200) Subject: Fix logging in if vinfo doesn't exist (Bug #8444). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5272be0996382edb916d8f760195465f2f163fdb;p=horde.git Fix logging in if vinfo doesn't exist (Bug #8444). --- diff --git a/imp/lib/Session.php b/imp/lib/Session.php index 76a005325..6003fe59f 100644 --- a/imp/lib/Session.php +++ b/imp/lib/Session.php @@ -80,7 +80,10 @@ class IMP_Session * necessary. */ if (!empty($conf['hooks']['vinfo'])) { try { - $imapuser = Horde::callHook('_imp_hook_vinfo', array('username', $imapuser), 'imp'); + $newUser = Horde::callHook('_imp_hook_vinfo', array('username', $imapuser), 'imp'); + if (strlen($newUser)) { + $imapuser = $newUser; + } } catch (Horde_Exception $e) {} }