From b98e71900de9ea6c1e965e2a389b1a99166a944e Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 10 Jan 2012 16:42:06 -0500
Subject: [PATCH] Allow plugins to extend the vcard fieldmap for contact data
---
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 deaaabf..fbf691a 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -750,11 +750,15 @@
* @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)
--
Gitblit v1.9.1