Skip to content
Snippets Groups Projects
Commit 1cf6f930 authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Issue #1660950 by valthebald: Fixed FeedsSource expects stored to be array,...

Issue #1660950 by valthebald: Fixed FeedsSource expects stored  to be array, which is not always the case.
parent 5072e10f
No related branches found
No related tags found
No related merge requests found
...@@ -527,6 +527,9 @@ class FeedsSource extends FeedsConfigurable { ...@@ -527,6 +527,9 @@ class FeedsSource extends FeedsConfigurable {
if (!empty($record->state)) { if (!empty($record->state)) {
$this->state = unserialize($record->state); $this->state = unserialize($record->state);
} }
if (!is_array($this->state)) {
$this->state = array();
}
if (!empty($record->fetcher_result)) { if (!empty($record->fetcher_result)) {
$this->fetcher_result = unserialize($record->fetcher_result); $this->fetcher_result = unserialize($record->fetcher_result);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment