Verified Commit 32657b4f authored by Damien's avatar Damien

[REFACTORING] Fix update docserver for 32 bits

parent cec09354
......@@ -120,7 +120,7 @@ class DocserverController
$data = $request->getParams();
$check = Validator::stringType()->notEmpty()->validate($data['device_label']);
$check = $check && Validator::intVal()->notEmpty()->validate($data['size_limit_number']);
$check = $check && !empty($data['size_limit_number']) && is_numeric($data['size_limit_number']);
$check = $check && Validator::stringType()->notEmpty()->validate($data['path_template']);
$check = $check && Validator::boolType()->validate($data['is_readonly']);
if (!$check) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment