From: Brion Vibber Date: Thu, 8 Dec 2005 01:52:43 +0000 (+0000) Subject: Avoid undefined variable error on null edits X-Git-Tag: 1.6.0~991 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=8e7ea374a79e19f97a09f09631a0775639d8b3ea;p=lhc%2Fweb%2Fwiklou.git Avoid undefined variable error on null edits --- diff --git a/includes/Article.php b/includes/Article.php index 47d091fc7d..c87bdd5724 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1309,6 +1309,7 @@ class Article { $oldsize = strlen( $oldtext ); $newsize = strlen( $text ); $lastRevision = 0; + $revisionId = 0; if ( 0 != strcmp( $text, $oldtext ) ) { $this->mGoodAdjustment = $this->isCountable( $text )