Index: trunk/extensions/FlaggedRevs/FlaggedRevision.php |
— | — | @@ -641,7 +641,7 @@ |
642 | 642 | $revIdDraft = (int)$row->page_latest; // may be NULL |
643 | 643 | if ( FlaggedRevs::inclusionSetting() == FR_INCLUDES_STABLE ) { |
644 | 644 | # Select newest of (stable rev, rev when reviewed) as "version used" |
645 | | - $revIdStable = max( $row->fp_stable, $row->ft_tmp_rev_id ); |
| 645 | + $revIdStable = (int)max( $row->fp_stable, $row->ft_tmp_rev_id ); |
646 | 646 | } else { |
647 | 647 | $revIdStable = (int)$row->ft_tmp_rev_id; // may be NULL |
648 | 648 | } |
— | — | @@ -697,7 +697,7 @@ |
698 | 698 | __METHOD__, |
699 | 699 | array(), /* OPTIONS */ |
700 | 700 | array( |
701 | | - 'flaggedimages' => array( 'LEFT JOIN', |
| 701 | + 'flaggedimages' => array( 'LEFT JOIN', |
702 | 702 | array( 'fi_rev_id' => $this->getRevId(), 'fi_name = il_to' ) ), |
703 | 703 | 'page' => array( 'LEFT JOIN', |
704 | 704 | 'page_namespace = ' . NS_FILE . ' AND page_title = il_to' ), |