diff options
author | Brion Vibber <brion@status.net> | 2010-08-12 15:18:50 -0700 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2010-08-12 15:18:50 -0700 |
commit | dcfc13cc0873e1a3815d3fa473d96e004af996b9 (patch) | |
tree | 486995ee3978e58daef79752856332a23cf87ec7 | |
parent | d9942a558a7dfd14980788399ca6aa578039a324 (diff) |
Fix PHP notice spew when Notice::saveNew() called without passing any options; default empty vars weren't being set.
-rw-r--r-- | classes/Notice.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 0eeebfadf..fe014b942 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -245,6 +245,8 @@ class Notice extends Memcached_DataObject if (!empty($options)) { $options = $options + $defaults; extract($options); + } else { + extract($defaults); } if (!isset($is_local)) { |