*If no changes, made, we have no new revision. Make $revision NULL, rather than not...
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 21 Aug 2007 03:21:27 +0000 (03:21 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 21 Aug 2007 03:21:27 +0000 (03:21 +0000)
includes/Article.php

index 6960b0c..cbf034b 100644 (file)
@@ -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