Now registrations works again when domain is not set

This commit is contained in:
Johannes Starosta 2015-07-13 06:40:28 +02:00
parent 89fb9ff1d3
commit 9295c366ea
1 changed files with 3 additions and 2 deletions

View File

@ -98,7 +98,8 @@ class RegisterController extends Controller {
// FEATURE: allow only from specific email domain // FEATURE: allow only from specific email domain
$allowed_domains= $this->config->getAppValue($this->appName, 'allowed_domains',''); $allowed_domains= $this->config->getAppValue($this->appName, 'allowed_domains','');
if ($allowed_domains !== null || $allowed_domains !== ''){ if ( ($allowed_domains === null) || ($allowed_domains === '') || ( strlen($allowed_domains)===0)){
}else{
$allowed_domains= explode (";",$allowed_domains); $allowed_domains= explode (";",$allowed_domains);
$allowed=false; $allowed=false;
$domains=array(); $domains=array();
@ -118,7 +119,7 @@ class RegisterController extends Controller {
$domains $domains
], 'guest'); ], 'guest');
} }
} }//else var_dump($allowed_domains);
$token = $this->pendingreg->save($email); $token = $this->pendingreg->save($email);