Skip to content

Commit

Permalink
Fix undefined notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 14, 2017
1 parent fc032e0 commit 57c4fd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/Core/lib/Horde.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 57c4fd7

Please sign in to comment.