keep some default value be integer 2

This commit is contained in:
xiaomlove
2021-01-06 02:19:03 +08:00
parent 28ab56fe70
commit 38dae7c068
25 changed files with 100 additions and 100 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ countdown(time);
if(isset($_GET["sent"]) && $_GET["sent"]=="yes"){
if(!isset($_GET["shbox_text"]) || !$_GET['shbox_text'])
{
$userid=$CURUSER["id"] ?? 0;
$userid=intval($CURUSER["id"] ?? 0);
}
else
{
@@ -77,7 +77,7 @@ else
}
elseif ($_GET["type"] == 'shoutbox')
{
$userid=$CURUSER["id"] ?? 0;
$userid=intval($CURUSER["id"] ?? 0);
if (!$userid){
write_log("Someone is hacking shoutbox. - IP : ".getip(),'mod');
die($lang_shoutbox['text_no_permission_to_shoutbox']);