From: Chad Horohoe Date: Wed, 9 Jun 2010 15:06:11 +0000 (+0000) Subject: Followup r67707, cast these to boolean just to be paranoid X-Git-Tag: 1.31.0-rc.0~36567 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=6fa2bfd4099d9b7ab24ff92b10bcb41edb361149;p=lhc%2Fweb%2Fwiklou.git Followup r67707, cast these to boolean just to be paranoid --- 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; } /**