Skip to content

Commit

Permalink
Merge pull request #30 from pablo-gonzalez-helpwan/pablo-gonzalez-hel…
Browse files Browse the repository at this point in the history
…pwan-patch-1

Display changes from null to a value
  • Loading branch information
199ocero authored Sep 4, 2024
2 parents 8b44d63 + aaca23c commit 37d61c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private function modifiedState(): array
$newValue = json_encode($newValue);
}

if (isset($oldValues[$key]) && $oldValues[$key] != $newValue) {
if (isset($oldValue) && $oldValue != $newValue) {
$changes[] = "- {$key} from <strong>".htmlspecialchars($oldValue).'</strong> to <strong>'.htmlspecialchars($newValue).'</strong>';
}
}
Expand Down

0 comments on commit 37d61c9

Please sign in to comment.