From e7fa2ce56d0c9e3d791f3c145febbb9ab16be838 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 18 Jun 2013 13:54:26 +0200 Subject: Fix so install do not fail when one of DB driver checks fails but other drivers exist (#1489178) --- installer/rcube_install.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'installer/rcube_install.php') diff --git a/installer/rcube_install.php b/installer/rcube_install.php index c95d936d2..473fd2612 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -496,10 +496,13 @@ class rcube_install * @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) . ':  NOT OK'; $this->_showhint($message, $url); -- cgit v1.2.3