From fdff34093d479f1a9cb98107b68eb9137278b181 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 3 Jan 2012 09:56:19 +0000 Subject: - Move some checks into login() method --- program/include/rcmail.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program') 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) -- cgit v1.2.3