reverse order of defaults and options in Notice::saveNew()

This commit is contained in:
Evan Prodromou 2011-07-20 11:53:47 -04:00
parent ebc5d6f676
commit d17a30ada4

View File

@ -274,8 +274,8 @@ class Notice extends Memcached_DataObject
'scope' => null,
'distribute' => true);
if (!empty($options)) {
$options = array_merge($options, $defaults);
if (!empty($options) && is_array($options)) {
$options = array_merge($defaults, $options);
extract($options);
} else {
extract($defaults);