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:
parent
b73f595ab8
commit
f334322185
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user