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
+13 -13
View File
@@ -3075,19 +3075,19 @@ function torrenttable($rows, $variant = "torrent") {
$imdb = new Nexus\Imdb\Imdb(); $imdb = new Nexus\Imdb\Imdb();
$torrent = new Nexus\Torrent\Torrent(); $torrent = new Nexus\Torrent\Torrent();
$torrentSeedingLeechingStatus = $torrent->listLeechingSeedingStatus($CURUSER['id'], array_column($rows, 'id')); $torrentSeedingLeechingStatus = $torrent->listLeechingSeedingStatus($CURUSER['id'], array_column($rows, 'id'));
$last_browse = $CURUSER['last_browse'];
if ($variant == "torrent"){ // if ($variant == "torrent"){
$last_browse = $CURUSER['last_browse']; // $last_browse = $CURUSER['last_browse'];
$sectiontype = $browsecatmode; // $sectiontype = $browsecatmode;
} // }
elseif($variant == "music"){ // elseif($variant == "music"){
$last_browse = $CURUSER['last_music']; // $last_browse = $CURUSER['last_music'];
$sectiontype = $specialcatmode; // $sectiontype = $specialcatmode;
} // }
else{ // else{
$last_browse = $CURUSER['last_browse']; // $last_browse = $CURUSER['last_browse'];
$sectiontype = ""; // $sectiontype = "";
} // }
$time_now = TIMENOW; $time_now = TIMENOW;
if ($last_browse > $time_now) { if ($last_browse > $time_now) {
+1 -1
View File
@@ -79,7 +79,7 @@ class TechnicalInformation
public function getRefFrame() public function getRefFrame()
{ {
foreach ($this->mediaInfoArr['Video'] as $key => $value) { foreach ($this->mediaInfoArr['Video'] ?? [] as $key => $value) {
if (strpos($key, 'Reference frames') !== false) { if (strpos($key, 'Reference frames') !== false) {
return $value; return $value;
} }
+1 -1
View File
@@ -481,7 +481,7 @@ echo "</script>";
} }
}else $no_give = $lang_details['text_no_magic_added']; }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 ) { }else if ($whether_have_give_value == 0 ) {
$magic_value_button = '<ul id="listNumber" class="magic">'.$magic_value_button.'</ul>'; $magic_value_button = '<ul id="listNumber" class="magic">'.$magic_value_button.'</ul>';