From: Michael J. Rubinsky Date: Mon, 31 May 2010 16:09:43 +0000 (-0400) Subject: MDB2 probably still needs this X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d9c803f49e142b02f456e03b88490a50c0014c39;p=horde.git MDB2 probably still needs this --- diff --git a/framework/Share/lib/Horde/Share/Sql.php b/framework/Share/lib/Horde/Share/Sql.php index 1ef197334..def009f80 100644 --- a/framework/Share/lib/Horde/Share/Sql.php +++ b/framework/Share/lib/Horde/Share/Sql.php @@ -810,7 +810,7 @@ class Horde_Share_Sql extends Horde_Share /* Connect to the sql server using the supplied parameters. */ $params = $this->_params; unset($params['charset']); - $this->_write_db = MDB2::factory($params); + $this->_write_db = &MDB2::factory($params); if ($this->_write_db instanceof PEAR_Error) { throw new Horde_Share_Exception($this->_write_db->getMessage()); } @@ -844,7 +844,7 @@ class Horde_Share_Sql extends Horde_Share if (!empty($this->_params['splitread'])) { $params = array_merge($params, $this->_params['read']); unset($params['charset']); - $this->_db = MDB2::singleton($params); + $this->_db = &MDB2::singleton($params); if ($this->_db instanceof PEAR_Error) { throw new Horde_Share_Exception($this->_db); }