1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00

fix property check

This commit is contained in:
Viktor Geringer 2019-12-14 11:12:03 +01:00 committed by GitHub
parent b73f595ab8
commit f334322185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@
public function createItem($data, $mediaType)
{
$release = Carbon::createFromFormat('Y-m-d',
isset($data->release_date) ? ($data->release_date ?: Item::FALLBACK_DATE) : ($data->first_air_date ?: Item::FALLBACK_DATE)
isset($data->release_date) ? ($data->release_date ?? Item::FALLBACK_DATE) : ($data->first_air_date ?? Item::FALLBACK_DATE)
);
$title = $data->name ?? $data->title;