diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 23:44:05 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 23:44:05 +0000 |
commit | ac7bd5544479eb8a2878351d0cbe99c0a4a0564c (patch) | |
tree | 085e5e6855ea4659b7ac1925c05c6c1dc3a66993 /install | |
parent | d5f23decb23511012f00a76b4318248f5cccacb7 (diff) | |
download | elgg-ac7bd5544479eb8a2878351d0cbe99c0a4a0564c.tar.gz elgg-ac7bd5544479eb8a2878351d0cbe99c0a4a0564c.tar.bz2 |
Fixes #2929 Installer handles private default access now
git-svn-id: http://code.elgg.org/elgg/trunk@8553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install')
-rw-r--r-- | install/ElggInstaller.php | 3 |
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; |