Skip to content

Commit

Permalink
bugfix rm dupe topics
Browse files Browse the repository at this point in the history
  • Loading branch information
attogram committed Apr 19, 2020
1 parent 56e6105 commit 511e8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private function removeTemplateTopics()
if ($template == $this->topic || (!in_array($template, $this->vars[self::EXISTS]))) {
continue; // error: is self, or template not cached
}
$templateData = $this->filesystem->get($template);
$templateData = json_decode($this->filesystem->get($template), true);
if (empty($templateData[self::TOPICS]) || !is_array($templateData[self::TOPICS])) {
continue; // error: malformed data
}
Expand Down

0 comments on commit 511e8ec

Please sign in to comment.