reverse order of defaults and options in Notice::saveNew()
This commit is contained in:
parent
ebc5d6f676
commit
d17a30ada4
@ -274,8 +274,8 @@ class Notice extends Memcached_DataObject
|
|||||||
'scope' => null,
|
'scope' => null,
|
||||||
'distribute' => true);
|
'distribute' => true);
|
||||||
|
|
||||||
if (!empty($options)) {
|
if (!empty($options) && is_array($options)) {
|
||||||
$options = array_merge($options, $defaults);
|
$options = array_merge($defaults, $options);
|
||||||
extract($options);
|
extract($options);
|
||||||
} else {
|
} else {
|
||||||
extract($defaults);
|
extract($defaults);
|
||||||
|
Loading…
Reference in New Issue
Block a user