From c351d491c0bced8474c5e14d5e306109c8337b86 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 22 Jan 2010 11:49:34 -0700 Subject: [PATCH] Fix undefined error --- imp/lib/Auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imp/lib/Auth.php b/imp/lib/Auth.php index 8f7b8a50b..86135ff09 100644 --- a/imp/lib/Auth.php +++ b/imp/lib/Auth.php @@ -33,7 +33,8 @@ class IMP_Auth { // Do 'horde' authentication. $imp_app = $GLOBALS['registry']->getApiInstance('imp', 'application'); - if ($imp_app->initParams['authentication'] == 'horde') { + if (!empty($imp_app->initParams['authentication']) && + ($imp_app->initParams['authentication'] == 'horde')) { if (Horde_Auth::getAuth()) { return false; } -- 2.11.0