mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
avoid duplicated lives
This commit is contained in:
parent
755dac6353
commit
f77d1b0acf
1 changed files with 7 additions and 1 deletions
|
@ -515,6 +515,12 @@ class LiveTransmitionHistory extends ObjectYPT {
|
||||||
$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