Fix PHP notice spew when Notice::saveNew() called without passing any options; default empty vars weren't being set.

This commit is contained in:
Brion Vibber 2010-08-12 15:18:50 -07:00
parent d9942a558a
commit dcfc13cc08
1 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,8 @@ class Notice extends Memcached_DataObject
if (!empty($options)) {
$options = $options + $defaults;
extract($options);
} else {
extract($defaults);
}
if (!isset($is_local)) {