From: Chuck Hagenbuch Date: Wed, 10 Nov 2010 02:24:49 +0000 (-0500) Subject: If $type is an array, this needs to be serialized as an array to work correctly. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d98b770682217d3d31e4ec41463b0ba878495f87;p=horde.git If $type is an array, this needs to be serialized as an array to work correctly. --- diff --git a/framework/Core/lib/Horde/Core/Factory/Db.php b/framework/Core/lib/Horde/Core/Factory/Db.php index 9924590aa..6bf1f8d73 100644 --- a/framework/Core/lib/Horde/Core/Factory/Db.php +++ b/framework/Core/lib/Horde/Core/Factory/Db.php @@ -64,7 +64,7 @@ class Horde_Core_Factory_Db */ public function create($app = 'horde', $type = null) { - $sig = hash('md5', serialize($app . '|' . $type)); + $sig = hash('md5', serialize(array($app, $type))); if (isset($this->_instances[$sig])) { return $this->_instances[$sig];