fix TechnicalInformation

This commit is contained in:
xiaomlove
2021-06-14 13:16:21 +08:00
parent 0f84c7cd5a
commit 8f40c30cdf
3 changed files with 15 additions and 15 deletions

View File

@@ -3075,19 +3075,19 @@ function torrenttable($rows, $variant = "torrent") {
$imdb = new Nexus\Imdb\Imdb();
$torrent = new Nexus\Torrent\Torrent();
$torrentSeedingLeechingStatus = $torrent->listLeechingSeedingStatus($CURUSER['id'], array_column($rows, 'id'));
if ($variant == "torrent"){
$last_browse = $CURUSER['last_browse'];
$sectiontype = $browsecatmode;
}
elseif($variant == "music"){
$last_browse = $CURUSER['last_music'];
$sectiontype = $specialcatmode;
}
else{
$last_browse = $CURUSER['last_browse'];
$sectiontype = "";
}
$last_browse = $CURUSER['last_browse'];
// if ($variant == "torrent"){
// $last_browse = $CURUSER['last_browse'];
// $sectiontype = $browsecatmode;
// }
// elseif($variant == "music"){
// $last_browse = $CURUSER['last_music'];
// $sectiontype = $specialcatmode;
// }
// else{
// $last_browse = $CURUSER['last_browse'];
// $sectiontype = "";
// }
$time_now = TIMENOW;
if ($last_browse > $time_now) {

View File

@@ -79,7 +79,7 @@ class TechnicalInformation
public function getRefFrame()
{
foreach ($this->mediaInfoArr['Video'] as $key => $value) {
foreach ($this->mediaInfoArr['Video'] ?? [] as $key => $value) {
if (strpos($key, 'Reference frames') !== false) {
return $value;
}

View File

@@ -481,7 +481,7 @@ echo "</script>";
}
}else $no_give = $lang_details['text_no_magic_added'];
if(intval($bonus_has) < intval($arr_temp[0])){
if(isset($bonus_has) && isset($arr_temp) && intval($bonus_has) < intval($arr_temp[0])){
}else if ($whether_have_give_value == 0 ) {
$magic_value_button = '<ul id="listNumber" class="magic">'.$magic_value_button.'</ul>';