Skip to content

Commit c739548

Browse files
author
Ilaria Orlando
committed
Fix no recipients formatter
1 parent 347cd2b commit c739548

File tree

1 file changed

+7
-1
lines changed
  • src/Backend/Modules/FormBuilder/Engine

1 file changed

+7
-1
lines changed

src/Backend/Modules/FormBuilder/Engine/Model.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,17 @@ public static function existsIdentifier(string $identifier, int $ignoreId = null
289289
*/
290290
public static function formatRecipients(string $string): string
291291
{
292+
if ($string === '') {
293+
return '';
294+
}
295+
296+
$unserialized = @unserialize($string, ['allowed_classes' => false]);
297+
292298
return implode(
293299
', ',
294300
(array) array_map(
295301
'htmlspecialchars',
296-
@unserialize($string, ['allowed_classes' => false])
302+
$unserialized
297303
)
298304
);
299305
}

0 commit comments

Comments
 (0)