diff options
Diffstat (limited to 'includes/filerepo/file/ArchivedFile.php')
-rw-r--r-- | includes/filerepo/file/ArchivedFile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php index 1d454283..1aec4464 100644 --- a/includes/filerepo/file/ArchivedFile.php +++ b/includes/filerepo/file/ArchivedFile.php @@ -485,7 +485,7 @@ class ArchivedFile { if ( $type == 'text' ) { return $this->user_text; } elseif ( $type == 'id' ) { - return $this->user; + return (int)$this->user; } throw new MWException( "Unknown type '$type'." ); @@ -587,6 +587,6 @@ class ArchivedFile { $this->load(); $title = $this->getTitle(); - return Revision::userCanBitfield( $this->deleted, $field, $user, $title ? : null ); + return Revision::userCanBitfield( $this->deleted, $field, $user, $title ?: null ); } } |