HF RL Explorer

form validation: fix bug

form validation: fix bug: a task in smol-software-harbor (Harbor dataset). The required rule in src/validator.php rejects the value "0" (an age of 0, a quantity of 0) because it uses PHP's empty() . A required field fails only when it is missing or contains nothing but whitespace. Fix it and run…

The task

The `required` rule in `src/validator.php` rejects the value `"0"` (an age of 0, a quantity of 0) because it uses PHP's `empty()`. A required field fails only when it is missing or contains nothing but whitespace. Fix it and run `php tests/run.php`.

Part of efederici/smol-software-harbor.