Followup r71831, it's not mutually exclusive!
Add missing if
This commit is contained in:
parent
c2a1fe9677
commit
68b89f0b6b
2 changed files with 4 additions and 2 deletions
|
|
@ -201,7 +201,8 @@ class ApiQueryImageInfo extends ApiQueryBase {
|
|||
|
||||
if ( isset( $prop['user'] ) ) {
|
||||
$vals['user'] = $file->getUser();
|
||||
} else if ( isset( $prop['userid'] ) ) {
|
||||
}
|
||||
if ( isset( $prop['userid'] ) ) {
|
||||
$vals['userid'] = $file->getUser( 'id' );
|
||||
}
|
||||
if ( !$file->getUser( 'id' ) ) {
|
||||
|
|
|
|||
|
|
@ -372,7 +372,8 @@ class ApiQueryRevisions extends ApiQueryBase {
|
|||
} else {
|
||||
if ( $this->fld_user ) {
|
||||
$vals['user'] = $revision->getUserText();
|
||||
} else {
|
||||
}
|
||||
if ( $this->fld_userid ) {
|
||||
$user = User::newFromText( $revision->getUserText() );
|
||||
$vals['userid'] = $user->getId();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue