Skip to content

Commit

Permalink
make it PHP 5.6 safe
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Sep 10, 2020
1 parent c30a77f commit 93b5507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private function fetchComments() {
$filename .= $this->grav['uri']->path() . '.yaml';

$data = $this->getDataFromFilename($filename);
$comments = $data['comments'] ?? null;
$comments = isset($data['comments']) ? $data['comments'] : null;
//save to cache if enabled
$cache->save($this->comments_cache_id, $comments);
return $comments;
Expand Down

0 comments on commit 93b5507

Please sign in to comment.