From f2b7664a2f80ff65caddd65e697175e2f78372b2 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Wed, 1 Jun 2022 00:10:29 +0200 Subject: [PATCH] Fix logging of deleted ids --- app/Services/TwoFAccountService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/TwoFAccountService.php b/app/Services/TwoFAccountService.php index c0e61691..b3aa6bbb 100644 --- a/app/Services/TwoFAccountService.php +++ b/app/Services/TwoFAccountService.php @@ -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;