If $type is an array, this needs to be serialized as an array to work correctly.
authorChuck Hagenbuch <chuck@horde.org>
Wed, 10 Nov 2010 02:24:49 +0000 (21:24 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 10 Nov 2010 02:25:24 +0000 (21:25 -0500)
framework/Core/lib/Horde/Core/Factory/Db.php

index 9924590..6bf1f8d 100644 (file)
@@ -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];