mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix issues
This commit is contained in:
@@ -2124,6 +2124,7 @@ function mkprettytime($s) {
|
|||||||
if ($s < 0)
|
if ($s < 0)
|
||||||
$s = 0;
|
$s = 0;
|
||||||
$t = array();
|
$t = array();
|
||||||
|
$s = round($s);
|
||||||
foreach (array("60:sec","60:min","24:hour","0:day") as $x) {
|
foreach (array("60:sec","60:min","24:hour","0:day") as $x) {
|
||||||
$y = explode(":", $x);
|
$y = explode(":", $x);
|
||||||
if ($y[0] > 1) {
|
if ($y[0] > 1) {
|
||||||
@@ -4153,7 +4154,8 @@ function getimdb($imdb_id, $cache_stamp, $mode = 'minor')
|
|||||||
}
|
}
|
||||||
else { //for tv series
|
else { //for tv series
|
||||||
$creator = $movie->creator();
|
$creator = $movie->creator();
|
||||||
$director_or_creator = "<strong><font color=\"DarkRed\">".$lang_functions['text_creator'].": </font></strong>".$creator;
|
$names = array_column($creator, "name");
|
||||||
|
$director_or_creator = "<strong><font color=\"DarkRed\">".$lang_functions['text_creator'].": </font></strong>".implode(", ", $names);
|
||||||
}
|
}
|
||||||
$cast = $movie->cast();
|
$cast = $movie->cast();
|
||||||
$temp = "";
|
$temp = "";
|
||||||
|
|||||||
+2
-2
@@ -57,13 +57,13 @@ $sortOptions = $orderOptions = '';
|
|||||||
foreach ($sortAllowed as $name => $text) {
|
foreach ($sortAllowed as $name => $text) {
|
||||||
$sortOptions .= sprintf(
|
$sortOptions .= sprintf(
|
||||||
'<option value="%s"%s>%s</option>',
|
'<option value="%s"%s>%s</option>',
|
||||||
$name, $_GET['sort'] == $name ? ' selected' : '', $text
|
$name, isset($_GET['sort']) && $_GET['sort'] == $name ? ' selected' : '', $text
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
foreach ($orderAllowed as $name => $text) {
|
foreach ($orderAllowed as $name => $text) {
|
||||||
$orderOptions .= sprintf(
|
$orderOptions .= sprintf(
|
||||||
'<option value="%s"%s>%s</option>',
|
'<option value="%s"%s>%s</option>',
|
||||||
$name, $_GET['order'] == $name ? ' selected' : '', $text
|
$name, isset($_GET['order']) && $_GET['order'] == $name ? ' selected' : '', $text
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$resetText = nexus_trans('label.reset');
|
$resetText = nexus_trans('label.reset');
|
||||||
|
|||||||
Reference in New Issue
Block a user