From 57c4fd78d11d9038d73224cbbef3f431f50de8e2 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 14 Feb 2017 13:58:04 +0100 Subject: [PATCH] Fix undefined notice. --- framework/Core/lib/Horde.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 57215d49d85..002048251ca 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -328,7 +328,9 @@ public static function getDriverConfig($backend, $type = 'sql') // base SQL config and the explicit driver we are creating, we // need to remove the not-used connection config since they use // different keys. - if (!is_null($type) && $type == 'sql') { + if ((!isset($c['params']['driverconfig']) || + $c['params']['driverconfig'] != 'horde') && + !is_null($type) && $type == 'sql') { if ($c['params']['protocol'] == 'unix') { unset($result['hostspec'], $result['port']); } else {