diff options
| author | Simon Rettberg | 2025-05-22 16:07:03 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-05-22 16:07:03 +0200 |
| commit | 19160ec62cec3b6e436590b16ebb2b329ef5d55b (patch) | |
| tree | bdfc8a89829fde79133b839d4cb52a27c7b3e520 /inc/request.inc.php | |
| parent | [locationinfo] URLpanel: Browser accept-language and screen rotation (diff) | |
| download | slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.gz slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.xz slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.zip | |
Add audit logging of POST actions
Diffstat (limited to 'inc/request.inc.php')
| -rw-r--r-- | inc/request.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/request.inc.php b/inc/request.inc.php index 54884475..3f1d96c6 100644 --- a/inc/request.inc.php +++ b/inc/request.inc.php @@ -74,7 +74,7 @@ class Request if ($default === self::REQUIRED_EMPTY || $default === self::REQUIRED) { if (!array_key_exists($key, $array)) { $err = 'missing'; - } elseif ($default === self::REQUIRED && $array[$key] === '') { + } elseif ($default === self::REQUIRED && ($array[$key] === '' || $array[$key] === [])) { $err = 'empty'; } } |
