r25344 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25343‎ | r25344 | r25345 >
Date:10:11, 31 August 2007
Author:aaron
Status:old
Tags:
Comment:
*Fix more fucked up code
Modified paths:
  • /trunk/extensions/Review/Review.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Review/Review.php
@@ -610,7 +610,7 @@
611611 $ret .= "</td>" ;
612612 } else {
613613 $ret .= "<td id='review_statistics_table_cell'>" ;
614 - if ( $data[$type]->total_count > 0 ) {
 614+ if ( isset( $data[$type] ) && $data[$type]->total_count > 0 ) {
615615 $average = $data[$type]->sum / $data[$type]->total_count ;
616616 $ret .= "<div id='" ;
617617 $ret .= "review_radio_" . (int) $average . "_of_" . $data[$type]->max ;

Status & tagging log