Skip to content

Commit 511e8ec

Browse files
committed
bugfix rm dupe topics
1 parent 56e6105 commit 511e8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Topic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private function removeTemplateTopics()
261261
if ($template == $this->topic || (!in_array($template, $this->vars[self::EXISTS]))) {
262262
continue; // error: is self, or template not cached
263263
}
264-
$templateData = $this->filesystem->get($template);
264+
$templateData = json_decode($this->filesystem->get($template), true);
265265
if (empty($templateData[self::TOPICS]) || !is_array($templateData[self::TOPICS])) {
266266
continue; // error: malformed data
267267
}

0 commit comments

Comments
 (0)