Index: trunk/phase3/includes/DBDataObject.php |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | array( 'LIMIT' => 1 ) |
209 | 209 | ); |
210 | 210 | |
211 | | - if ( !$result ) { |
| 211 | + if ( $result !== false ) { |
212 | 212 | $this->setFields( $this->getFieldsFromDBResult( $result ), $override ); |
213 | 213 | return true; |
214 | 214 | } |
— | — | @@ -880,7 +880,8 @@ |
881 | 881 | } |
882 | 882 | |
883 | 883 | $dbr = wfGetDB( static::getReadDb() ); |
884 | | - $result = $dbr->select(static::getDBTable(), |
| 884 | + $result = $dbr->select( |
| 885 | + static::getDBTable(), |
885 | 886 | static::getPrefixedFields( $fields ), |
886 | 887 | static::getPrefixedValues( $conditions ), |
887 | 888 | __METHOD__, |