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' => '全不選',