]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
reverse order of defaults and options in Notice::saveNew()
authorEvan Prodromou <evan@status.net>
Wed, 20 Jul 2011 15:53:47 +0000 (11:53 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 20 Jul 2011 15:53:47 +0000 (11:53 -0400)
classes/Notice.php

index 426065ac90376aa51b53887e9eeebb812c41b6a8..5caecff8f353a392fa42ae9bb0db2fab2790d07c 100644 (file)
@@ -274,8 +274,8 @@ class Notice extends Memcached_DataObject
                           'scope' => null,
                           'distribute' => true);
 
-        if (!empty($options)) {
-            $options = array_merge($options, $defaults);
+        if (!empty($options) && is_array($options)) {
+            $options = array_merge($defaults, $options);
             extract($options);
         } else {
             extract($defaults);