history가 없는데 참조해서 발생하는 버그 수정

This commit is contained in:
2018-04-02 02:31:17 +09:00
parent 427532f0a5
commit 3e3f156359
8 changed files with 212 additions and 144 deletions
+2 -3
View File
@@ -4,7 +4,7 @@ namespace sammo;
include "lib.php";
include "func.php";
$session = Session::Instance()->loginGame();
$session = Session::Instance()->loginGame()->setReadOnly();
$connect = dbConn();
increaseRefresh("메인", 1);
@@ -24,11 +24,10 @@ $me = $db->queryFirstRow(
//그새 사망이면
if($me === null) {
$session->loginGame();
$session->logoutGame();
header('Location: ../');
die();
}
$session->setReadOnly();
if($me['newmsg'] == 1 && $me['newvote'] == 1) {
$query = "update general set newmsg=0,newvote=0 where owner='{$_SESSION['userID']}'";