From a3ad2cc2c452e2bcdc006bd418f17857b317abb8 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 12 May 2025 19:27:57 +0700 Subject: [PATCH] fix issues --- include/functions.php | 4 +++- public/claim.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 9a8d4f73..e19205f1 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2124,6 +2124,7 @@ function mkprettytime($s) { if ($s < 0) $s = 0; $t = array(); + $s = round($s); foreach (array("60:sec","60:min","24:hour","0:day") as $x) { $y = explode(":", $x); if ($y[0] > 1) { @@ -4153,7 +4154,8 @@ function getimdb($imdb_id, $cache_stamp, $mode = 'minor') } else { //for tv series $creator = $movie->creator(); - $director_or_creator = "".$lang_functions['text_creator'].": ".$creator; + $names = array_column($creator, "name"); + $director_or_creator = "".$lang_functions['text_creator'].": ".implode(", ", $names); } $cast = $movie->cast(); $temp = ""; diff --git a/public/claim.php b/public/claim.php index 9a4b323e..89a97f60 100644 --- a/public/claim.php +++ b/public/claim.php @@ -57,13 +57,13 @@ $sortOptions = $orderOptions = ''; foreach ($sortAllowed as $name => $text) { $sortOptions .= sprintf( '', - $name, $_GET['sort'] == $name ? ' selected' : '', $text + $name, isset($_GET['sort']) && $_GET['sort'] == $name ? ' selected' : '', $text ); } foreach ($orderAllowed as $name => $text) { $orderOptions .= sprintf( '', - $name, $_GET['order'] == $name ? ' selected' : '', $text + $name, isset($_GET['order']) && $_GET['order'] == $name ? ' selected' : '', $text ); } $resetText = nexus_trans('label.reset');