$status can be something different, e.g. a complete error message from
authorJan Schneider <jan@horde.org>
Wed, 14 Jan 2009 14:41:02 +0000 (15:41 +0100)
committerJan Schneider <jan@horde.org>
Thu, 15 Jan 2009 16:25:57 +0000 (17:25 +0100)
Auth_imp::_authenticate().

imp/lib/IMP.php

index daac3da..b096fa8 100644 (file)
@@ -1384,6 +1384,11 @@ class IMP
 
         case 'failed':
             $status_msg = 'FAILED LOGIN';
+            break;
+
+        default:
+            $status_msg = $status;
+            break;
         }
 
         $imp_imap = &$GLOBALS['imp_imap']->ob;