mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 12:07:46 +02:00
fix: correct php-fpm issues
This commit is contained in:
parent
cbc5d0891d
commit
1ef55d7315
2 changed files with 26 additions and 2 deletions
|
|
@ -270,7 +270,7 @@ class EpisodeModel extends Model
|
|||
$sortNumberField =
|
||||
$podcastType == 'serial'
|
||||
? 'if(isnull(season_number),0,season_number)*1000+number'
|
||||
: 'UNIX_TIMESTAMP(published_at)';
|
||||
: 'published_at';
|
||||
$sortNumberValue =
|
||||
$podcastType == 'serial'
|
||||
? (empty($episode->season_number)
|
||||
|
|
@ -278,7 +278,7 @@ class EpisodeModel extends Model
|
|||
: $episode->season_number) *
|
||||
1000 +
|
||||
$episode->number
|
||||
: strtotime($episode->published_at);
|
||||
: $episode->published_at;
|
||||
|
||||
$previousData = $this->orderBy('(' . $sortNumberField . ') DESC')
|
||||
->where([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue