Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -115,9 +115,9 @@ |
116 | 116 | // Use the title index in preference to the user index if there is a conflict |
117 | 117 | $index = is_null($user) ? 'page_time' : array('page_time','user_time'); |
118 | 118 | } |
119 | | - if ( $index ) { |
120 | | - $this->addOption( 'USE INDEX', array( 'logging' => $index ) ); |
121 | | - } |
| 119 | + |
| 120 | + $this->addOption( 'USE INDEX', array( 'logging' => $index ) ); |
| 121 | + |
122 | 122 | // Paranoia: avoid brute force searches (bug 17342) |
123 | 123 | if (!is_null($title)) { |
124 | 124 | $this->addWhere('log_deleted & ' . LogPage::DELETED_ACTION . ' = 0'); |