Index: trunk/phase3/includes/ImageGallery.php |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | * @param $f Boolean: set to false to disable. |
185 | 185 | */ |
186 | 186 | function setShowBytes( $f ) { |
187 | | - $this->mShowBytes = $f; |
| 187 | + $this->mShowBytes = (bool)$f; |
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | * @param $f Boolean: set to false to disable. |
195 | 195 | */ |
196 | 196 | function setShowFilename( $f ) { |
197 | | - $this->mShowFilename = $f; |
| 197 | + $this->mShowFilename = (bool)$f; |
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |