Fix undefined error
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 22 Jan 2010 18:49:34 +0000 (11:49 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 22 Jan 2010 18:49:34 +0000 (11:49 -0700)
imp/lib/Auth.php

index 8f7b8a5..86135ff 100644 (file)
@@ -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;
             }