From 7fb8f641d157caab7398c5859450a86d2b8dfbde Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Oct 2015 05:30:13 +0000 Subject: [PATCH] fixed typo (wrong case) causing default DB capabilities to be returned and eg. giving an sql error when searching under MySQL in addressbook --- phpgwapi/inc/class.egw_db.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index 1b9c5eac8f..367a87d802 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -455,7 +455,7 @@ class egw_db switch($Type) // convert to ADO db-type-names { case 'pgsql': - $type = 'postgres'; // name in ADOdb + $Type = 'postgres'; // name in ADOdb // create our own pgsql connection-string, to allow unix domain soccets if !$Host $Host = "dbname=$Database".($Host ? " host=$Host".($Port ? " port=$Port" : '') : ''). " user=$User".($Password ? " password='".addslashes($Password)."'" : ''); @@ -525,7 +525,7 @@ class egw_db if (($Ok = $this->Link_ID->$connect($Host, $User, $Password, $Database))) { $this->ServerInfo = $this->Link_ID->ServerInfo(); - $this->set_capabilities($type,$this->ServerInfo['version']); + $this->set_capabilities($Type,$this->ServerInfo['version']); } if (!$Ok) {