fix issues + tag sort

This commit is contained in:
xiaomlove
2025-05-12 16:46:01 +07:00
parent 8b2c6cea2f
commit cc9d0969cc
6 changed files with 6 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ class TagRepository extends BaseRepository
public static function createBasicQuery()
{
return Tag::query()->orderBy('priority', 'asc')->orderBy('id', 'asc');
return Tag::query()->orderBy('priority', 'desc')->orderBy('id', 'desc');
}
public function renderCheckbox(int $searchBoxId, array $checked = [], $ignorePermission = false): string

View File

@@ -265,7 +265,7 @@ HEAD;
}
public function renderOnUploadPage($torrentId = 0, $searchBoxId)
public function renderOnUploadPage($torrentId, $searchBoxId)
{
$searchBox = NexusDB::getOne('searchbox', "id = $searchBoxId");
if (empty($searchBox)) {

View File

@@ -177,7 +177,7 @@ class Imdb
$temp .= $ak["title"].$ak["year"]. ($ak["country"] != "" ? " (".$ak["country"].")" : "") . ($ak["comment"] != "" ? " (" . $ak["comment"] . ")" : "") . ", ";
}
$autodata .= rtrim(trim($temp), ",");
$runtimes = str_replace(" min",$lang_details['text_mins'], $movie->runtime());
$runtimes = str_replace(" min",$lang_details['text_mins'], $movie->runtime() ?? '');
$autodata .= "<br />\n<strong><font color=\"DarkRed\">".$lang_details['text_year']."</font></strong>" . "".$movie->year ()."<br />\n";
$autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_runtime']."</font></strong>".$runtimes."<br />\n";
$autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_votes']."</font></strong>" . "".$movie->votes ()."<br />\n";

View File

@@ -14,7 +14,7 @@ $claimRep = new \App\Repositories\ClaimRepository();
$seedBoxRep = new \App\Repositories\SeedBoxRepository();
$claimTorrentTTL = \App\Models\Claim::getConfigTorrentTTL();
$id = intval($_GET['userid'] ?? 0);
$type = $_GET['type'];
$type = $_GET['type'] ?? '';
if (!in_array($type,array('uploaded','seeding','leeching','completed','incomplete')))
die;
if(!user_can('torrenthistory') && $id != $CURUSER["id"])

View File

@@ -289,7 +289,7 @@ stdfoot();
}
if ($action == "moveordel")
{
$pm_id = (int) $_POST['id'];
$pm_id = (int) $_POST['id'] ?? 0;
$pm_box = (int) $_POST['box'];
$pm_messages = $_POST['messages'];
if ($_POST['markread'])

View File

@@ -581,7 +581,7 @@ if ($action == "exchange") {
$userid = $CURUSER['id'];
$art = $bonusarray['art'];
$bonuscomment = $CURUSER['bonuscomment'];
// $bonuscomment = $CURUSER['bonuscomment'];
$seedbonus=$CURUSER['seedbonus']-$points;
if($CURUSER['seedbonus'] >= $points) {