aboutsummaryrefslogtreecommitdiffstats
path: root/includes/FeedUtils.php
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2012-02-18 01:07:42 +0000
committerSam Reed <reedy@users.mediawiki.org>2012-02-18 01:07:42 +0000
commit560ebfb7216246b4464c39848feab0edd307ccd2 (patch)
tree38a81999949ed24dd8c1796dd291a28fc47eb16c /includes/FeedUtils.php
parenta5f83ab29075c9f958fcd611a990aa09de422e94 (diff)
downloadmediawikicore-560ebfb7216246b4464c39848feab0edd307ccd2.tar.gz
mediawikicore-560ebfb7216246b4464c39848feab0edd307ccd2.zip
Fix possibly undefined variables
Move $db further up Return something on all paths
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111811
Diffstat (limited to 'includes/FeedUtils.php')
-rw-r--r--includes/FeedUtils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php
index 0e1c8f184202..d280db5b39d7 100644
--- a/includes/FeedUtils.php
+++ b/includes/FeedUtils.php
@@ -114,6 +114,7 @@ class FeedUtils {
# $wgLang->time( $timestamp ) ),
# wfMsg( 'currentrev' ) );
+ $diffText = '';
// Don't bother generating the diff if we won't be able to show it
if ( $wgFeedDiffCutoff > 0 ) {
$de = new DifferenceEngine( $title, $oldid, $newid );