forked from GNUsocial/gnu-social
Fix PHP notice spew when Notice::saveNew() called without passing any options; default empty vars weren't being set.
This commit is contained in:
parent
d9942a558a
commit
dcfc13cc08
@ -245,6 +245,8 @@ class Notice extends Memcached_DataObject
|
||||
if (!empty($options)) {
|
||||
$options = $options + $defaults;
|
||||
extract($options);
|
||||
} else {
|
||||
extract($defaults);
|
||||
}
|
||||
|
||||
if (!isset($is_local)) {
|
||||
|
Loading…
Reference in New Issue
Block a user