mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
d731a52cd0
commit
577fd37afc
1 changed files with 2 additions and 1 deletions
|
@ -1541,7 +1541,8 @@ class API extends PluginAbstract
|
|||
$trans->setTitle($parameters['title']);
|
||||
$trans->setPublic($parameters['public']);
|
||||
if ($obj->id = $trans->save()) {
|
||||
return new ApiObject("", false, $obj);
|
||||
$trans = LiveTransmition::getFromDb($obj->id, true);
|
||||
return new ApiObject("", false, $trans);
|
||||
} else {
|
||||
return new ApiObject("Error on save");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue