Fix import of styles without dark mode
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 16 Mar 2023 09:15:30 +0000 (10:15 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 16 Mar 2023 09:17:39 +0000 (10:17 +0100)
Fixes #5360

wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 27a7b6733812e1ceab1fc72b123810eafef48490..73d1f99a57d1bd7e914ca4a68730e491a193c7a5 100644 (file)
@@ -446,7 +446,7 @@ final class StyleEditor extends DatabaseObjectEditor implements IEditableCachedO
             'authorName' => $data['authorName'],
             'authorURL' => $data['authorURL'],
             'packageName' => $data['packageName'],
-            'hasDarkMode' => $data['hasDarkMode'],
+            'hasDarkMode' => $data['hasDarkMode'] ? 1 : 0,
         ];
 
         // check if there is an untainted style with the same package name