move the null assignment of $orig up a bit

This commit is contained in:
Evan Prodromou 2012-03-07 15:58:47 -06:00
parent 1573b5d132
commit 783df54086

View File

@ -87,10 +87,10 @@ class Spam_score extends Managed_DataObject
function save($notice, $result) { function save($notice, $result) {
$orig = null;
$score = Spam_score::staticGet('notice_id', $notice->id); $score = Spam_score::staticGet('notice_id', $notice->id);
if (empty($score)) { if (empty($score)) {
$orig = null;
$score = new Spam_score(); $score = new Spam_score();
} else { } else {
$orig = clone($score); $orig = clone($score);