From: Evan Prodromou Date: Wed, 7 Mar 2012 21:58:47 +0000 (-0600) Subject: move the null assignment of $orig up a bit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=783df54086d35defda603ea9f7ed56681ad28b83;p=quix0rs-gnu-social.git move the null assignment of $orig up a bit --- diff --git a/Spam_score.php b/Spam_score.php index 36d172f396..997a9f83ad 100644 --- a/Spam_score.php +++ b/Spam_score.php @@ -87,10 +87,10 @@ class Spam_score extends Managed_DataObject function save($notice, $result) { + $orig = null; $score = Spam_score::staticGet('notice_id', $notice->id); if (empty($score)) { - $orig = null; $score = new Spam_score(); } else { $orig = clone($score);