From dfcd2d939122b232d560736bf326501e62106791 Mon Sep 17 00:00:00 2001 From: tonghoil Date: Sun, 21 Sep 2025 15:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=8D=E5=AD=90=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=AF=84=E8=AE=BA=E5=BC=95=E7=94=A8=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=97=B6=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/comment.php | 4 ++-- resources/lang/en/nexus.php | 1 + resources/lang/zh_TW/nexus.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/comment.php b/public/comment.php index fc5a37b7..17f2f1a6 100644 --- a/public/comment.php +++ b/public/comment.php @@ -117,10 +117,10 @@ if ($action == "add") $commentid = intval($_GET["cid"] ?? 0); int_check($commentid,true); - $res2 = sql_query("SELECT comments.text, users.username FROM comments JOIN users ON comments.user = users.id WHERE comments.id=$commentid") or sqlerr(__FILE__, __LINE__); + $res2 = sql_query("SELECT comments.text, users.username FROM comments LEFT JOIN users ON comments.user = users.id WHERE comments.id=$commentid") or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($res2) != 1) - stderr($lang_forums['std_error'], $lang_forums['std_no_comment_id']); + stderr($lang_comment['std_error'], $lang_comment['std_no_comment_id']); $arr2 = mysql_fetch_assoc($res2); } diff --git a/resources/lang/en/nexus.php b/resources/lang/en/nexus.php index aa8f0575..2115c2cd 100644 --- a/resources/lang/en/nexus.php +++ b/resources/lang/en/nexus.php @@ -7,6 +7,7 @@ return [ 'user_not_exists' => '(orphaned)', 'time_units' => [ 'week' => 'weeks', + 'hour' => 'hours', ], 'select_all' => 'Select all', 'unselect_all' => 'Unselect all', diff --git a/resources/lang/zh_TW/nexus.php b/resources/lang/zh_TW/nexus.php index e7020b8f..b43d1407 100644 --- a/resources/lang/zh_TW/nexus.php +++ b/resources/lang/zh_TW/nexus.php @@ -7,6 +7,7 @@ return [ 'user_not_exists' => '(無此帳戶)', 'time_units' => [ 'week' => '周', + 'hour' => '小時', ], 'select_all' => '全選', 'unselect_all' => '全不選',