Remove explicit casting
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 10 Jan 2019 13:26:27 +0000 (14:26 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 10 Jan 2019 13:29:30 +0000 (14:29 +0100)
See #2825

wcfsetup/install/files/lib/system/file/upload/UploadField.class.php

index d1206bfc81595a6fe443b0f65bfde47c82225fce..4ee60272790df8c1f1d04bb2784522c75178fcd5 100644 (file)
@@ -144,6 +144,6 @@ class UploadField {
         * @param       boolean       $imageOnly
         */
        public function setImageOnly($imageOnly) {
-               $this->imageOnly = (bool) $imageOnly;
+               $this->imageOnly = $imageOnly;
        }
 }