Only provide dummy data if it has not been set in the parameters.
authorGunnar Wrobel <p@rdus.de>
Fri, 14 Jan 2011 09:04:31 +0000 (10:04 +0100)
committerGunnar Wrobel <p@rdus.de>
Fri, 14 Jan 2011 09:04:31 +0000 (10:04 +0100)
framework/Kolab_Storage/lib/Horde/Kolab/Storage/Factory.php

index 65db2fe..9b2ecf7 100644 (file)
@@ -119,7 +119,9 @@ class Horde_Kolab_Storage_Factory
         }
         switch ($params['driver']) {
         case 'mock':
-            $config['data'] = array('user/test' => array());
+            if (!isset($config['data'])) {
+                $config['data'] = array('user/test' => array());
+            }
             $driver = new Horde_Kolab_Storage_Driver_Mock($this, $config);
             break;
         case 'horde':