/* Run the username through virtualhost expansion functions if
* necessary. */
if (!empty($conf['hooks']['vinfo'])) {
- $hook_user = Horde::callHook('_imp_hook_vinfo', array('username', $imapuser), 'imp');
- if (!is_a($hook_user, 'PEAR_Error')) {
- $imapuser = $hook_user;
+ try {
+ $hook_user = Horde::callHook('_imp_hook_vinfo', array('username', $imapuser), 'imp');
+ if (!is_a($hook_user, 'PEAR_Error')) {
+ $imapuser = $hook_user;
+ }
+ } catch (Horde_Exception $e) {
}
}