aboutsummaryrefslogtreecommitdiff
path: root/install/ElggInstaller.php
diff options
context:
space:
mode:
Diffstat (limited to 'install/ElggInstaller.php')
-rw-r--r--install/ElggInstaller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php
index ab4998b37..648716442 100644
--- a/install/ElggInstaller.php
+++ b/install/ElggInstaller.php
@@ -1249,7 +1249,8 @@ class ElggInstaller {
protected function validateSettingsVars($submissionVars, $formVars) {
foreach ($formVars as $field => $info) {
- if ($info['required'] == TRUE && !$submissionVars[$field]) {
+ $submissionVars[$field] = trim($submissionVars[$field]);
+ if ($info['required'] == TRUE && $submissionVars[$field] === '') {
$name = elgg_echo("install:settings:label:$field");
register_error(elgg_echo('install:error:requiredfield', array($name)));
return FALSE;