From 2bd9fdaf7f026405e1af86f8359176a66a8a75a0 Mon Sep 17 00:00:00 2001 From: Carlos Lizaola <> Date: Tue, 9 Jul 2019 20:09:40 -0700 Subject: [PATCH] Some fixes --- src/TenantManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TenantManager.php b/src/TenantManager.php index 31307cc7..b4accc18 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -93,8 +93,8 @@ class TenantManager throw new \Exception("Domain $domain does not exists."); } - if ($aliasUuid = $this->storage->getTenantIdByDomain($alias)) { - throw new \Exception("Domain Alias $domain is already occupied in use."); + if ($this->storage->getTenantIdByDomain($alias)) { + throw new \Exception("Domain Alias $alias is already occupied."); } $tenant = $this->jsonDecodeArrayValues($this->storage->aliasTenant($alias, $uuid));