1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

retention: change config format

This commit is contained in:
Gabriel Poma 2025-06-13 15:05:27 +02:00
commit bc11241a28
2 changed files with 8 additions and 9 deletions

View file

@ -119,9 +119,8 @@ $f3->route('GET /signature',
if ($f3->exists('signature')) {
$retentions = [];
foreach ($f3->get('signature.retention') ?? [] as $retention) {
$r = explode(':', $retention);
$retentions[$r[0]] = $r[1];
foreach ($f3->get('signature.retention') ?? [] as $key => $text) {
$retentions[$key] = $text;
}
$f3->set('signatureRetention', $retentions);
}