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)) {
|
if (!empty($options)) {
|
||||||
$options = $options + $defaults;
|
$options = $options + $defaults;
|
||||||
extract($options);
|
extract($options);
|
||||||
|
} else {
|
||||||
|
extract($defaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($is_local)) {
|
if (!isset($is_local)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user