fix searchbox check

This commit is contained in:
xiaomlove
2022-11-26 13:24:30 +08:00
parent 536f0dcb6e
commit 65819d6c5d
6 changed files with 29 additions and 9 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class SearchBox extends NexusModel
$other = $data['other'] ?? [];
$data["extra->" . self::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST] = in_array(self::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST, $other) ? 1 : 0;
$data["extra->" . self::EXTRA_DISPLAY_SEED_BOX_ICON_ON_TORRENT_LIST] = in_array(self::EXTRA_DISPLAY_SEED_BOX_ICON_ON_TORRENT_LIST, $other) ? 1 : 0;
$data['custom_fields'] = array_filter($data['custom_fields']);
return $data;
}