From 6e48caae3c7f8b77a0c195d12f2c7101013ae96e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 21 Aug 2007 03:21:27 +0000 Subject: [PATCH] *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 --- includes/Article.php | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1