From 5f6c71ae36b73e5f94543eec2f61874cf46e9c62 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 16 Oct 2012 12:03:58 -0400
Subject: [PATCH] Fix return value of storage_connect()

---
 program/include/rcmail.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index ee144fa..ec3d537 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -2118,10 +2118,9 @@
             }
             else {
                 $this->set_storage_prop();
-                return $storage->is_connected();
             }
         }
 
-        return false;
+        return $storage->is_connected();
     }
 }

--
Gitblit v1.9.1