Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 6, 2025
1 parent ac87664 commit a1d330f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions plugin/Live/Live.php
Original file line number Diff line number Diff line change
Expand Up @@ -3441,6 +3441,9 @@ public static function restreamToDestination($liveTransmitionHistory_id, $restre
$live_url = '';
$restreamRowItems[$id] = self::gettRestreamRowItem($restreamsDestination, $id, $live_url);
$obj = self::_getRestreamObject($liveTransmitionHistory_id, $restreamRowItems);
if(empty($obj)){
return false;
}
$obj->live_restreams_id = 0;
return self::sendRestream($obj);
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/Live/Objects/LiveTransmitionHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ public static function getLatestFromKey($key, $strict = false)
return false;
}

$sql = "SELECT * FROM " . static::getTableName() . " WHERE `key` LIKE '{$key}%' ";
$sql = "SELECT * FROM " . static::getTableName() . " WHERE ";

if(!$strict){
$parts = Live::getLiveParametersFromKey($key);
Expand Down

0 comments on commit a1d330f

Please sign in to comment.