diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Notice.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 01ed4e7f4..2205279e8 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -176,12 +176,13 @@ class Notice extends Memcached_DataObject } static function saveNew($profile_id, $content, $source, $options=null) { + $defaults = array('uri' => null, + 'reply_to' => null, + 'repeat_of' => null); if (!empty($options)) { + $options = $options + $defaults; extract($options); - if (!isset($reply_to)) { - $reply_to = NULL; - } } if (empty($is_local)) { |