누락된 getReq 추가. 버그 수정

This commit is contained in:
2018-04-14 02:42:58 +09:00
parent a03d2cee63
commit b797bab7e0
13 changed files with 40 additions and 40 deletions
+4 -5
View File
@@ -4,8 +4,10 @@ namespace sammo;
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int');
$type = Util::getReq('type', 'int', 0);
if($type < 0 || $type > 4){
$type = 0;
}
extractMissingPostToGlobals();
//로그인 검사
@@ -34,9 +36,6 @@ if($session->userGrade < 5) {
$db = DB::db();
$connect=$db->get();
if($type == 0) {
$type = 0;
}
$sel[$type] = "selected";
?>