forked from GNUsocial/gnu-social
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,
|
||||
'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);
|
||||
|
Loading…
Reference in New Issue
Block a user