]> git.mxchange.org Git - friendica.git/commitdiff
Fix condition
authorMichael <heluecht@pirati.ca>
Tue, 17 Nov 2020 23:59:14 +0000 (23:59 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 17 Nov 2020 23:59:14 +0000 (23:59 +0000)
src/Model/User.php

index 39f9dc2a15109530f8892e68cdc6d39f8a0c7766..1959e95798681a558d80f28b28a340aed686b713 100644 (file)
@@ -215,7 +215,7 @@ class User
                // List of possible actor names
                $possible_accounts = ['friendica', 'actor', 'system', 'internal'];
                foreach ($possible_accounts as $name) {
-                       if (!DBA::exists('user', ['nickname' => $name, 'account_removed' => false, 'expire']) &&
+                       if (!DBA::exists('user', ['nickname' => $name, 'account_removed' => false, 'expire' => false]) &&
                                !DBA::exists('userd', ['username' => $name])) {
                                DI::config()->set('system', 'actor_name', $name);
                                return $name;