1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Merge pull request #6840 from turbo124/v5-develop

Fixes for invitations
This commit is contained in:
David Bomba 2021-10-14 18:59:16 +11:00 committed by GitHub
commit ac65ef820e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ class SetInviteDb
$hashed_db = $hashids->decode($segments[0]);
}
if(is_array($hashed_db) && ($hashed_db[0] == "01" || $hashed_db[0] == "02")){
if($hashed_db && is_array($hashed_db) && ($hashed_db[0] == "01" || $hashed_db[0] == "02")){
MultiDB::setDB(MultiDB::DB_PREFIX.str_pad($hashed_db[0], 2, '0', STR_PAD_LEFT));