From d9c803f49e142b02f456e03b88490a50c0014c39 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 31 May 2010 12:09:43 -0400 Subject: [PATCH] MDB2 probably still needs this --- framework/Share/lib/Horde/Share/Sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.11.0