summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-03 09:56:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-03 09:56:19 +0000
commite96d84bdc8443d9e5ba5bde028f20711678e0e0a (patch)
tree1366e80dcedd3e9126c292a12796b2196e7cf092 /roundcubemail/program
parentcbef63721dc384b091d6e9c3e8bd087bdaf062a5 (diff)
- Move some checks into login() method
git-svn-id: https://svn.roundcube.net/trunk@5690 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcmail.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index deaaabf54..fbf691a51 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/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)