projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb9dbcf
)
Fix logging in if vinfo doesn't exist (Bug #8444).
author
Jan Schneider
<jan@horde.org>
Mon, 20 Jul 2009 13:16:46 +0000
(15:16 +0200)
committer
Jan Schneider
<jan@horde.org>
Mon, 20 Jul 2009 13:16:46 +0000
(15:16 +0200)
imp/lib/Session.php
patch
|
blob
|
history
diff --git
a/imp/lib/Session.php
b/imp/lib/Session.php
index
76a0053
..
6003fe5
100644
(file)
--- 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) {}
}