]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix PHP notice spew when Notice::saveNew() called without passing any options; defaul...
authorBrion Vibber <brion@status.net>
Thu, 12 Aug 2010 22:18:50 +0000 (15:18 -0700)
committerBrion Vibber <brion@status.net>
Thu, 12 Aug 2010 22:18:50 +0000 (15:18 -0700)
classes/Notice.php

index 0eeebfadf374aa7e61c89ca7f56f524f77b15bcb..fe014b942d86ef9e036bf7af5a072c4d796d55ed 100644 (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)) {