Skip to content

Commit

Permalink
Avoid errors on the schedule live and keys
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Dec 9, 2021
1 parent 6644ead commit 9a58262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/Live/view/modeYoutubeLive.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
setLiveKey($livet['key'], Live::getLiveServersIdRequest(), @$_REQUEST['live_index']);
$lt = new LiveTransmition($livet['id']);

Live::checkIfPasswordIsGood($lt->getKey());
Live::checkIfPasswordIsGood($livet['key']);

if (!$lt->userCanSeeTransmition()) {
forbiddenPage("You are not allowed see this streaming");
Expand Down
3 changes: 1 addition & 2 deletions plugin/Live/view/videoEmbeded.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
$livet = LiveTransmition::getFromRequest();
setLiveKey($livet['key'], Live::getLiveServersIdRequest(), @$_REQUEST['live_index']);

$lt = new LiveTransmition($livet['id']);
Live::checkIfPasswordIsGood($lt->getKey());
Live::checkIfPasswordIsGood($livet['key']);

$uuid = LiveTransmition::keyNameFix($livet['key']);
$p = AVideoPlugin::loadPlugin("Live");
Expand Down

0 comments on commit 9a58262

Please sign in to comment.