Skip to content

Commit a0ddd37

Browse files
authored
Merge pull request #1 from santilorenzo/hotfix/base-record-constructor
Fixed missing attribute "valore"
2 parents d26a6fe + 4f8438f commit a0ddd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct()
1515

1616
// Inizializzazione di tutti i campi
1717
foreach ($struttura as $nome => $campo) {
18-
$this->{$nome} = $campo['valore'] ?: '';
18+
$this->{$nome} = isset($campo['valore']) ? $campo['valore'] : '';
1919
}
2020
}
2121

0 commit comments

Comments
 (0)