r49469 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49468‎ | r49469 | r49470 >
Date:16:06, 14 April 2009
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: define $stats_data. Thanks to Moli for the code (see http://trac.wikia-code.com/changeset/7798#file28)
Modified paths:
  • /trunk/extensions/SocialProfile/UserStats/UserStatsClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserStats/UserStatsClass.php
@@ -407,6 +407,7 @@
408408
409409 if( $this->user_id == 0 ) return '';
410410
 411+ $stats_data = array();
411412 if( is_array( $wgUserLevels ) ){
412413 // Load points before update
413414 $stats = new UserStats($this->user_id, $this->user_name);
@@ -460,7 +461,6 @@
461462 }
462463 $this->clearCache();
463464 }
464 - // FIXME: Undefined variable: stats_data
465465 return $stats_data;
466466 }
467467 }

Status & tagging log