array_merge 대신 + 기호로 충분한 경우(dictionary) +로 변경함.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
|
||||
$v = new Validator(array_merge($_POST, $_GET));
|
||||
$v = new Validator($_GET + $_POST);
|
||||
$v
|
||||
->rule('required', [
|
||||
'name',
|
||||
|
||||
Reference in New Issue
Block a user