require lang_functions every page

This commit is contained in:
xiaomlove
2022-06-09 01:47:33 +08:00
parent dfc857061a
commit 11d906a869
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ else
$username .= $lang_shoutbox['text_to_guest'];
}
else $username = $lang_shoutbox['text_guest'];
if ($CURUSER['timetype'] != 'timealive')
if (isset($CURUSER) && $CURUSER['timetype'] != 'timealive')
$time = strftime("%m.%d %H:%M",$arr["date"]);
else $time = get_elapsed_time($arr["date"]).$lang_shoutbox['text_ago'];
print("<tr><td class=\"shoutrow\"><span class='date'>[".$time."]</span> ".