]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong user table field name in Repository\Notify
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Nov 2022 14:03:43 +0000 (09:03 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Nov 2022 14:03:43 +0000 (09:03 -0500)
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1314954594

src/Navigation/Notifications/Repository/Notify.php

index 683725e4ba97856a199d096d4d226071d02a6a76..3891a6e256c3fc6775573d66539514582adbab37 100644 (file)
@@ -531,7 +531,7 @@ class Notify extends BaseRepository
                // Ensure that the important fields are set at any time
                $fields = ['nickname', 'account_removed', 'account_expired'];
                $user = Model\User::getById($params['uid'], $fields);
-               if ($user['account_removed'] || $user['user_expired']) {
+               if ($user['account_removed'] || $user['account_expired']) {
                        return false;
                }