summaryrefslogtreecommitdiffstats
path: root/inc/request.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2025-05-22 16:07:03 +0200
committerSimon Rettberg2025-05-22 16:07:03 +0200
commit19160ec62cec3b6e436590b16ebb2b329ef5d55b (patch)
treebdfc8a89829fde79133b839d4cb52a27c7b3e520 /inc/request.inc.php
parent[locationinfo] URLpanel: Browser accept-language and screen rotation (diff)
downloadslx-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.php2
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';
}
}