mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
avoid duplicated lives
This commit is contained in:
parent
755dac6353
commit
f77d1b0acf
1 changed files with 7 additions and 1 deletions
|
@ -514,7 +514,13 @@ class LiveTransmitionHistory extends ObjectYPT {
|
||||||
if (empty($this->finished)) {
|
if (empty($this->finished)) {
|
||||||
$this->finished = 'NULL';
|
$this->finished = 'NULL';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$activeLive = self::getActiveLiveFromUser($this->users_id, $this->live_servers_id, $this->key);
|
||||||
|
if(!empty($activeLive)){
|
||||||
|
$this->id = $activeLive['id'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return parent::save();
|
return parent::save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue