Skip to content

Commit 2067bfa

Browse files
fix: get signature upload
1 parent 48823c9 commit 2067bfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/interventi/src/Intervento.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function getSignatureUploadAttribute()
290290

291291
// Cerca il primo file con key che inizia con 'signature_'
292292
foreach ($uploads as $upload) {
293-
if (strpos($upload->key, 'signature_') === 0) {
293+
if (strpos($upload->key ?: '', 'signature_') === 0) {
294294
return $upload;
295295
}
296296
}

0 commit comments

Comments
 (0)