From 8b81c61396f0eba2fcebcba29eb6f569877becc9 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 18 Jun 2013 07:55:03 -0400
Subject: [PATCH] Fix so install do not fail when one of DB driver checks fails but other drivers exist (#1489178)

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

diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index ce9ddfc..43e6407 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -495,10 +495,13 @@
    * @param string Test name
    * @param string Error message
    * @param string URL for details
+   * @param bool   Do not count this failure
    */
-  function fail($name, $message = '', $url = '')
+  function fail($name, $message = '', $url = '', $optional=false)
   {
-    $this->failures++;
+    if (!$optional) {
+      $this->failures++;
+    }
 
     echo Q($name) . ':&nbsp; <span class="fail">NOT OK</span>';
     $this->_showhint($message, $url);

--
Gitblit v1.9.1