From: Michael M Slusarz Date: Tue, 30 Nov 2010 19:37:42 +0000 (-0700) Subject: Bug #9415: Fix fatal error if IMAP object does not exist X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0db86d41a1f35abf34371cccc0e099c6a5ba5c90;p=horde.git Bug #9415: Fix fatal error if IMAP object does not exist --- diff --git a/imp/lib/Auth.php b/imp/lib/Auth.php index 444c5e269..d0269602c 100644 --- a/imp/lib/Auth.php +++ b/imp/lib/Auth.php @@ -192,8 +192,8 @@ class IMP_Auth !strlen($auth_id) ? '' : 'for ' . $auth_id, $_SERVER['REMOTE_ADDR'], empty($_SERVER['HTTP_X_FORWARDED_FOR']) ? '' : ' (forwarded for [' . $_SERVER['HTTP_X_FORWARDED_FOR'] . '])', - $imap_ob ? $imap_ob->getParam('hostspec') : '', - $imap_ob ? $imap_ob->getParam('port') : '', + $imap_ob->ob ? $imap_ob->getParam('hostspec') : '', + $imap_ob->ob ? $imap_ob->getParam('port') : '', $GLOBALS['session']->exists('imp', 'protocol') ? ' [' . $GLOBALS['session']->get('imp', 'protocol') . ']' : '' );