mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Catch all for null subdomains
This commit is contained in:
parent
80d033b952
commit
eaebaccdaf
@ -337,6 +337,10 @@ class Import implements ShouldQueue
|
||||
|
||||
if(!MultiDB::checkDomainAvailable($data['subdomain']))
|
||||
$data['subdomain'] = MultiDB::randomSubdomainGenerator();
|
||||
|
||||
if(strlen($data['subdomain']) == 0)
|
||||
$data['subdomain'] = MultiDB::randomSubdomainGenerator();
|
||||
|
||||
}
|
||||
|
||||
$rules = (new UpdateCompanyRequest())->rules();
|
||||
|
Loading…
Reference in New Issue
Block a user