From: Evan Prodromou Date: Wed, 20 Jul 2011 15:53:47 +0000 (-0400) Subject: reverse order of defaults and options in Notice::saveNew() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d17a30ada4216205bb9b6673f63afbc75fcfe830;p=quix0rs-gnu-social.git reverse order of defaults and options in Notice::saveNew() --- diff --git a/classes/Notice.php b/classes/Notice.php index 426065ac90..5caecff8f3 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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);