summaryrefslogtreecommitdiff
path: root/includes/media/ImageHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/media/ImageHandler.php')
-rw-r--r--includes/media/ImageHandler.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/media/ImageHandler.php b/includes/media/ImageHandler.php
index e079003b..6794e4bf 100644
--- a/includes/media/ImageHandler.php
+++ b/includes/media/ImageHandler.php
@@ -93,6 +93,7 @@ abstract class ImageHandler extends MediaHandler {
if ( !isset( $params['page'] ) ) {
$params['page'] = 1;
} else {
+ $params['page'] = intval( $params['page'] );
if ( $params['page'] > $image->pageCount() ) {
$params['page'] = $image->pageCount();
}