정적 분석 결과 반영. 익명 함수로 전환. POST 변수명.
This commit is contained in:
@@ -11,6 +11,18 @@ if($session->userGrade < 5){
|
||||
echo '_119.php';//TODO:debug all and replace
|
||||
}
|
||||
|
||||
$v = new Validator($_POST);
|
||||
$v->rule('integer', [
|
||||
'minute',
|
||||
'minutes2'
|
||||
]);
|
||||
if(!$v->validate()){
|
||||
Error($v->errorStr());
|
||||
}
|
||||
|
||||
$minute = Util::toInt(Util::array_get($_POST['minute']));
|
||||
$minute2 = Util::toInt(Util::array_get($_POST['minute2']));
|
||||
|
||||
$db = DB::db();
|
||||
$connect=$db->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user