]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
move the null assignment of $orig up a bit
authorEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 21:58:47 +0000 (15:58 -0600)
committerEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 21:58:47 +0000 (15:58 -0600)
Spam_score.php

index 36d172f39606f3779288fe8c4211b0c045755615..997a9f83ad3add167aec94e1190161ab2635fccb 100644 (file)
@@ -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);