diff options
author | alecpl <alec@alec.pl> | 2012-01-03 09:56:19 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-01-03 09:56:19 +0000 |
commit | fdff34093d479f1a9cb98107b68eb9137278b181 (patch) | |
tree | 1b4bf795e7357de7e7c4caf6938811ab7fdcf974 /program/include | |
parent | cc75440de24b90028e2843598b2f62c664bfe4f5 (diff) |
- Move some checks into login() method
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcmail.php | 6 |
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) |