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

---
 installer/check.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/installer/check.php b/installer/check.php
index fcf3502..bea8c42 100644
--- a/installer/check.php
+++ b/installer/check.php
@@ -139,10 +139,11 @@
     if (extension_loaded($ext)) {
         // MySQL driver requires PHP >= 5.3 (#1488875)
         if ($ext == 'pdo_mysql' && version_compare(PHP_VERSION, '5.3.0', '<')) {
-            $RCI->fail($database, 'PHP >= 5.3 required');
+            $RCI->fail($database, 'PHP >= 5.3 required', null, true);
         }
         else {
             $RCI->pass($database);
+            $found_db_driver = true;
         }
     }
     else {
@@ -152,6 +153,9 @@
     }
     echo '<br />';
 }
+if (empty($found_db_driver)) {
+  $RCI->failures++;
+}
 
 ?>
 

--
Gitblit v1.9.1