From fa7539e7aded38fd87f81d5db083b7e3b1af0547 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 27 Feb 2008 09:23:41 -0500
Subject: [PATCH] Send test message with mail() if no SMTP server configured; show input fields for SMTP auth if necessary

---
 installer/rcube_install.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index 44d4531..65fbe09 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -95,14 +95,14 @@
    * @param string Default value
    * @return string The property value
    */
-  function getprop($name, $default = null)
+  function getprop($name, $default = '')
   {
     $value = isset($_REQUEST["_$name"]) ? $_REQUEST["_$name"] : $this->config[$name];
     
     if ($name == 'des_key' && !isset($_REQUEST["_$name"]))
       $value = self::random_key(24);
     
-    return $value !== null ? $value : $default;
+    return $value !== null && $value !== '' ? $value : $default;
   }
   
   

--
Gitblit v1.9.1