Fix logging of deleted ids

This commit is contained in:
Bubka 2022-06-01 00:10:29 +02:00
parent 9f39aee8a6
commit f2b7664a2f

View File

@ -221,7 +221,7 @@ public function delete($ids) : int
// $ids as string could be a comma-separated list of ids
// so in this case we explode the string to an array
$ids = $this->commaSeparatedToArray($ids);
Log::info(sprintf('Deletion of TwoFAccounts #%s requested', implode(',#', $ids)));
Log::info(sprintf('Deletion of TwoFAccounts #%s requested', is_array($ids) ? implode(',#', $ids) : $ids ));
$deleted = TwoFAccount::destroy($ids);
return $deleted;