mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix TechnicalInformation
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user