summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-08-12 15:18:50 -0700
committerBrion Vibber <brion@status.net>2010-08-12 15:18:50 -0700
commitdcfc13cc0873e1a3815d3fa473d96e004af996b9 (patch)
tree486995ee3978e58daef79752856332a23cf87ec7
parentd9942a558a7dfd14980788399ca6aa578039a324 (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.php2
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)) {