Skip to content

Commit cdbb8b4

Browse files
committed
Check the correct array.
1 parent 4e2e442 commit cdbb8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FaqOff/Splices/Accounts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function updateAccountByAdmin(int $accountId, array $post): bool
189189
'login' => $post['login'],
190190
'active' => $post['active'] ?? false
191191
];
192-
if (empty($updates['public_id'])) {
192+
if (empty($post['public_id'])) {
193193
$this->generatePublicId($accountId);
194194
} else {
195195
$updates['public_id'] = $post['public_id'];

0 commit comments

Comments
 (0)