$_SESSION 으로 직접 접근하는 코드들을 모두 Session 클래스로 통합
This commit is contained in:
+3
-3
@@ -35,13 +35,13 @@ $session->setReadOnly();
|
||||
|
||||
|
||||
if($me['newmsg'] == 1 && $me['newvote'] == 1) {
|
||||
$query = "update general set newmsg=0,newvote=0 where owner='{$_SESSION['userID']}'";
|
||||
$query = "update general set newmsg=0,newvote=0 where owner='{$session->userID}'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
} elseif($me['newmsg'] == 1) {
|
||||
$query = "update general set newmsg=0 where owner='{$_SESSION['userID']}'";
|
||||
$query = "update general set newmsg=0 where owner='{$session->userID}'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
} elseif($me['newvote'] == 1) {
|
||||
$query = "update general set newvote=0 where owner='{$_SESSION['userID']}'";
|
||||
$query = "update general set newvote=0 where owner='{$session->userID}'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user