From: Aaron Schulz Date: Tue, 21 Aug 2007 03:21:27 +0000 (+0000) Subject: *If no changes, made, we have no new revision. Make $revision NULL, rather than not... X-Git-Tag: 1.31.0-rc.0~51713 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=6e48caae3c7f8b77a0c195d12f2c7101013ae96e;p=lhc%2Fweb%2Fwiklou.git *If no changes, made, we have no new revision. Make $revision NULL, rather than not defined at all, as this spewed errors on no-change rollbacks --- diff --git a/includes/Article.php b/includes/Article.php index 6960b0c127..cbf034b2e8 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1396,6 +1396,7 @@ class Article { $dbw->commit(); } } else { + $revision = null; // Keep the same revision ID, but do some updates on it $revisionId = $this->getRevIdFetched(); // Update page_touched, this is usually implicit in the page update