From 1cf6f930a7c896d1a82d17319af1409c1405ba94 Mon Sep 17 00:00:00 2001
From: Chris Leppanen <chris.leppanen@gmail.com>
Date: Thu, 17 Jan 2013 15:13:26 -0800
Subject: [PATCH] Issue #1660950 by valthebald: Fixed FeedsSource expects
 stored  to be array, which is not always the case.

---
 includes/FeedsSource.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/includes/FeedsSource.inc b/includes/FeedsSource.inc
index 7f69bd67..98cd0f1b 100644
--- a/includes/FeedsSource.inc
+++ b/includes/FeedsSource.inc
@@ -527,6 +527,9 @@ class FeedsSource extends FeedsConfigurable {
       if (!empty($record->state)) {
         $this->state = unserialize($record->state);
       }
+      if (!is_array($this->state)) {
+        $this->state = array();
+      }
       if (!empty($record->fetcher_result)) {
         $this->fetcher_result = unserialize($record->fetcher_result);
       }
-- 
GitLab