Bug fix on air.txt
This commit is contained in:
@@ -281,9 +281,9 @@ QUERY;
|
|||||||
|
|
||||||
$activeStudioQuery = app('db')->select("SELECT `studio` FROM `programs_schedule_webcam` WHERE `active` = 1");
|
$activeStudioQuery = app('db')->select("SELECT `studio` FROM `programs_schedule_webcam` WHERE `active` = 1");
|
||||||
if(!count($activeStudioQuery) || !($activeStudio = $activeStudioQuery[0]->studio)) {
|
if(!count($activeStudioQuery) || !($activeStudio = $activeStudioQuery[0]->studio)) {
|
||||||
$activeStudio = 'nonstop';
|
$activeStudio = null;
|
||||||
}
|
$current = null;
|
||||||
|
} else {
|
||||||
$current = $this->getTrack($activeStudio);
|
$current = $this->getTrack($activeStudio);
|
||||||
$next = $this->getTrack($activeStudio, /* next: */ true);
|
$next = $this->getTrack($activeStudio, /* next: */ true);
|
||||||
$current->ends($next->start);
|
$current->ends($next->start);
|
||||||
@@ -292,6 +292,7 @@ QUERY;
|
|||||||
$current = $next;
|
$current = $next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'inProgram' => !$program->nonstop,
|
'inProgram' => !$program->nonstop,
|
||||||
@@ -314,7 +315,7 @@ QUERY;
|
|||||||
|
|
||||||
$activeStudioQuery = app('db')->select("SELECT `studio` FROM `programs_schedule_webcam` WHERE `active` = 1");
|
$activeStudioQuery = app('db')->select("SELECT `studio` FROM `programs_schedule_webcam` WHERE `active` = 1");
|
||||||
if(!count($activeStudioQuery) || !($activeStudio = $activeStudioQuery[0]->studio)) {
|
if(!count($activeStudioQuery) || !($activeStudio = $activeStudioQuery[0]->studio)) {
|
||||||
$activeStudio = 'nonstop';
|
$activeStudio = $program->nonstop ? 'nonstop' : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = [];
|
$text = [];
|
||||||
@@ -332,7 +333,7 @@ QUERY;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$request->get('program_only', false) && !($current->isLayout())) {
|
if($current && !$request->get('program_only', false) && !($current->isLayout())) {
|
||||||
if($current->title) $text[] = $current->title;
|
if($current->title) $text[] = $current->title;
|
||||||
if($current->artist) $text[] = $currenet->artist;
|
if($current->artist) $text[] = $currenet->artist;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user