Fix array_merge
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 23 Nov 2009 19:02:51 +0000 (14:02 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 23 Nov 2009 19:02:51 +0000 (14:02 -0500)
kronolith/lib/Resource/Base.php

index 966611a..0979c0a 100644 (file)
@@ -46,12 +46,11 @@ abstract class Kronolith_Resource_Base
             throw new Horde_Exception('Required \'name\' attribute missing from resource calendar');
         }
 
-        array_merge($params, array('description' => '',
-                                   'response_type' => Kronolith_Resource::RESPONSETYPE_MANUAL,
-                                   'members' => '',
-                                   'type' => Kronolith_Resource::TYPE_SINGLE));
-
-        $this->_params = $params;
+        $this->_params = array_merge(array('description' => '',
+                                           'response_type' => Kronolith_Resource::RESPONSETYPE_MANUAL,
+                                           'members' => '',
+                                           'type' => Kronolith_Resource::TYPE_SINGLE),
+                                     $params);
     }
 
     /**