mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
cd1a22fd0e
commit
a526bf9eb9
2 changed files with 5 additions and 2 deletions
|
@ -34,13 +34,14 @@ foreach ($stats as $key => $live) {
|
|||
if (!empty($live['key'])) {
|
||||
echo "key= {$live['key']}".PHP_EOL;
|
||||
$row = LiveTransmitionHistory::getLatest($live['key'], $live['live_servers_id']);
|
||||
|
||||
echo "id={$row['id']} finished= {$row['finished']}".PHP_EOL;
|
||||
if (!empty($row['finished'])) {
|
||||
LiveTransmitionHistory::unfinishFromTransmitionHistoryId($row['id']);
|
||||
var_dump($resp, $unfinishFromTransmitionHistoryIdSQL);
|
||||
echo "id={$row['id']} unfinished".PHP_EOL;
|
||||
}else{
|
||||
$row = LiveTransmition::keyExists($_POST['name']);
|
||||
$row = LiveTransmition::keyExists($live['key']);
|
||||
if(!empty($row)){
|
||||
$lth = new LiveTransmitionHistory();
|
||||
$lth->setTitle($row['title']);
|
||||
|
@ -51,6 +52,8 @@ foreach ($stats as $key => $live) {
|
|||
$id = $lth->save();
|
||||
echo ("unfinishAllFromStats saving LiveTransmitionHistory [{$id}]").PHP_EOL;
|
||||
echo "not empty id={$row['id']}".PHP_EOL;
|
||||
}else{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1906,7 +1906,7 @@ Click <a href=\"{link}\">here</a> to join our live.";
|
|||
if (!empty($row['finished'])) {
|
||||
LiveTransmitionHistory::unfinishFromTransmitionHistoryId($row['id']);
|
||||
}else{
|
||||
$row = LiveTransmition::keyExists($_POST['name']);
|
||||
$row = LiveTransmition::keyExists($live['key']);
|
||||
if(!empty($row)){
|
||||
$lth = new LiveTransmitionHistory();
|
||||
$lth->setTitle($row['title']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue