Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -834,7 +834,7 @@ |
835 | 835 | $title = $article->getTitle(); |
836 | 836 | // Cached results available? |
837 | 837 | if ( isset($this->stablefound) ) { |
838 | | - return ( $this->stablerev ) ? $this->stablerev : null; |
| 838 | + return ( $this->stablefound ) ? $this->stablerev : null; |
839 | 839 | } |
840 | 840 | $dbr = wfGetDB( DB_SLAVE ); |
841 | 841 | // Skip deleted revisions |
— | — | @@ -875,7 +875,7 @@ |
876 | 876 | $title = $article->getTitle(); |
877 | 877 | // Cached results available? |
878 | 878 | if ( isset($this->latestfound) ) { |
879 | | - return ( $this->latestrev ) ? $this->latestrev : NULL; |
| 879 | + return ( $this->latestfound ) ? $this->latestrev : NULL; |
880 | 880 | } |
881 | 881 | $dbr = wfGetDB( DB_SLAVE ); |
882 | 882 | // Skip deleted revisions |