Skip to content

Commit

Permalink
LocationType - Fix error in fix for smarty notices
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jul 19, 2023
1 parent c65b412 commit d51bddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Admin/Page/LocationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function getRows($sort, $action, array $links): array {
foreach ($rows as &$row) {
// prevent smarty notices.
foreach (['is_default', 'class', 'vcard_name'] as $expectedField) {
if (!isset($row['is_default'])) {
if (!isset($row[$expectedField])) {
$row[$expectedField] = NULL;
}
}
Expand Down

0 comments on commit d51bddf

Please sign in to comment.