From 6fa2bfd4099d9b7ab24ff92b10bcb41edb361149 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 9 Jun 2010 15:06:11 +0000 Subject: [PATCH] Followup r67707, cast these to boolean just to be paranoid --- includes/ImageGallery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 0b44ab906e..3e6e3b94f7 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -183,7 +183,7 @@ class ImageGallery * @param $f Boolean: set to false to disable. */ function setShowBytes( $f ) { - $this->mShowBytes = $f; + $this->mShowBytes = (bool)$f; } /** @@ -193,7 +193,7 @@ class ImageGallery * @param $f Boolean: set to false to disable. */ function setShowFilename( $f ) { - $this->mShowFilename = $f; + $this->mShowFilename = (bool)$f; } /** -- 2.20.1