From 0db86d41a1f35abf34371cccc0e099c6a5ba5c90 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 30 Nov 2010 12:37:42 -0700 Subject: [PATCH] Bug #9415: Fix fatal error if IMAP object does not exist --- imp/lib/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') . ']' : '' ); -- 2.11.0