Index: trunk/phase3/includes/User.php |
— | — | @@ -467,7 +467,7 @@ |
468 | 468 | $s = $dbr->selectRow( 'user', array( 'user_id' ), array( 'user_name' => $nt->getText() ), __METHOD__ ); |
469 | 469 | |
470 | 470 | if ( $s === false ) { |
471 | | - $result = 0; |
| 471 | + $result = null; |
472 | 472 | } else { |
473 | 473 | $result = $s->user_id; |
474 | 474 | } |
— | — | @@ -2151,7 +2151,7 @@ |
2152 | 2152 | } |
2153 | 2153 | # Use strict parameter to avoid matching numeric 0 accidentally inserted |
2154 | 2154 | # by misconfiguration: 0 == 'foo' |
2155 | | - return in_array( $action, $this->getRights(), true ); |
| 2155 | + return in_array( $action, $this->getRights(), true ) |
2156 | 2156 | } |
2157 | 2157 | |
2158 | 2158 | /** |