From: Brion Vibber Date: Thu, 12 Aug 2010 22:18:50 +0000 (-0700) Subject: Fix PHP notice spew when Notice::saveNew() called without passing any options; defaul... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dcfc13cc0873e1a3815d3fa473d96e004af996b9;p=quix0rs-gnu-social.git Fix PHP notice spew when Notice::saveNew() called without passing any options; default empty vars weren't being set. --- diff --git a/classes/Notice.php b/classes/Notice.php index 0eeebfadf3..fe014b942d 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)) {