Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Commit

Permalink
🐛 null value in data
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 14, 2020
1 parent 8e96b39 commit 71f8197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/SQLitePagesDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function set(string $key, $value, int $modified): bool
'id' => $key,
'modified_at' => $modified,
'data' => json_encode(array_map(function ($value) {
return $value ? htmlspecialchars(strval($value), ENT_QUOTES) : '';
return $value ? htmlspecialchars(strval($value), ENT_QUOTES) : null;
}, $value)),
]);

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-page-sqlite",
"type": "kirby-plugin",
"version": "1.0.3",
"version": "1.0.4",
"description": "Kirby 3 Plugin to cache the content file using SQLite",
"license": "MIT",
"authors": [
Expand Down

0 comments on commit 71f8197

Please sign in to comment.