From 6744bc11b3edf669da2808faa3b45a34eebe928c Mon Sep 17 00:00:00 2001 From: Mzhelskiy Maxim Date: Mon, 6 Mar 2017 16:19:02 +0700 Subject: [PATCH] fix topic extra --- .../classes/modules/topic/entity/Topic.entity.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/classes/modules/topic/entity/Topic.entity.class.php b/application/classes/modules/topic/entity/Topic.entity.class.php index f744d7b9..6066a488 100644 --- a/application/classes/modules/topic/entity/Topic.entity.class.php +++ b/application/classes/modules/topic/entity/Topic.entity.class.php @@ -909,6 +909,9 @@ class ModuleTopic_EntityTopic extends Entity if (is_null($this->aExtra)) { $this->aExtra = @unserialize($this->getExtra()); } + if (!is_array($this->aExtra)) { + $this->aExtra = array(); + } } /**