From df81a6e8680975c55e653d996309a368edefcf91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 10 Jan 2019 14:26:27 +0100 Subject: [PATCH] Remove explicit casting See #2825 --- .../install/files/lib/system/file/upload/UploadField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php index d1206bfc81..4ee6027279 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php @@ -144,6 +144,6 @@ class UploadField { * @param boolean $imageOnly */ public function setImageOnly($imageOnly) { - $this->imageOnly = (bool) $imageOnly; + $this->imageOnly = $imageOnly; } } -- 2.20.1