summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index deaaabf54..fbf691a51 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -750,11 +750,15 @@ class rcmail
* @param string IMAP user name
* @param string IMAP password
* @param string IMAP host
+ *
* @return boolean True on success, False on failure
*/
function login($username, $pass, $host=NULL)
{
- $user = NULL;
+ if (empty($username)) {
+ return false;
+ }
+
$config = $this->config->all();
if (!$host)