summaryrefslogtreecommitdiffstats
path: root/inc/request.inc.php
diff options
context:
space:
mode:
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';
}
}