Permalink
Browse files

Using Set::merge() instead of array_merge_recursive to be able to ove…

…rride correctly default values
  • Loading branch information...
1 parent d3c78b9 commit 8688408b48cd51caeca2b774f3a6bbaadd8fccb4 @lorenzo committed Jun 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/behaviors/purifiable.php
@@ -50,7 +50,7 @@ function setup(&$model, $config = array()) {
$this->settings[$model->alias] = $this->_settings;
//merge custom config with default settings
- $this->settings[$model->alias] = array_merge_recursive($this->settings[$model->alias], (array)$config);
+ $this->settings[$model->alias] = Set::merge($this->settings[$model->alias], (array)$config);
}
/**

0 comments on commit 8688408

Please sign in to comment.