Skip to content

Commit

Permalink
json_decode on filesystem->get
Browse files Browse the repository at this point in the history
  • Loading branch information
attogram committed Apr 22, 2020
1 parent c2cb83b commit 6d7e61f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class Base
{
const VERSION = '0.6.0';
const VERSION = '0.6.2';

/** Cache Time, in seconds. 4 days = 345600 seconds */
const CACHE_TIME = 345600;
Expand Down
2 changes: 1 addition & 1 deletion src/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function get()
*/
private function setDataFromCache()
{
$this->data = $this->filesystem->get($this->topic);
$this->data = json_decode($this->filesystem->get($this->topic));
if (!is_array($this->data)) {
$this->data = [];

Expand Down

0 comments on commit 6d7e61f

Please sign in to comment.