mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Test for truth
This commit is contained in:
parent
9d8ee8a44e
commit
9222b72c7e
@ -255,7 +255,7 @@ class MultiDB
|
||||
{
|
||||
|
||||
if (! config('ninja.db.multi_db_enabled'))
|
||||
return (Company::on($db)->whereSubdomain($subdomain)->exists() === true);
|
||||
return (Company::whereSubdomain($subdomain)->exists() === true);
|
||||
|
||||
foreach (self::$dbs as $db) {
|
||||
if ($company = Company::on($db)->whereSubdomain($subdomain)->first()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user