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 71f8197 commit b3bbe3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 75 deletions.
2 changes: 1 addition & 1 deletion classes/SQLitePagesDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function get(string $key, int $modified, $default = null)

// return the pure value
return array_map(function ($value) {
return htmlspecialchars_decode($value);
return $value ? htmlspecialchars_decode(strval($value)) : $value;
}, json_decode($value->data, true));
}

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.4",
"version": "1.0.5",
"description": "Kirby 3 Plugin to cache the content file using SQLite",
"license": "MIT",
"authors": [
Expand Down
77 changes: 4 additions & 73 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3bbe3d

Please sign in to comment.