Bug #9415: Fix fatal error if IMAP object does not exist
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Nov 2010 19:37:42 +0000 (12:37 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Nov 2010 20:45:39 +0000 (13:45 -0700)
imp/lib/Auth.php

index 444c5e2..d026960 100644 (file)
@@ -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') . ']' : ''
         );