From: Alexandre Emsenhuber Date: Sun, 4 Apr 2010 12:01:42 +0000 (+0000) Subject: Avoid PHP notice about undefined variable $diffText if $wgFeedDiffCutoff is 0 X-Git-Tag: 1.31.0-rc.0~37253 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=dc81854161aa6378475166081fe3d802a36f439b;p=lhc%2Fweb%2Fwiklou.git Avoid PHP notice about undefined variable $diffText if $wgFeedDiffCutoff is 0 --- diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index c634014c3e..9daffc12f7 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -124,7 +124,7 @@ class FeedUtils { $wgLang->time( $timestamp ) ) ); } - if ( ( strlen( $diffText ) > $wgFeedDiffCutoff ) || ( $wgFeedDiffCutoff <= 0 ) ) { + if ( $wgFeedDiffCutoff <= 0 || ( strlen( $diffText ) > $wgFeedDiffCutoff ) ) { // Omit large diffs $diffLink = $title->escapeFullUrl( 'diff=' . $newid .