From 8dd1ca3be4355b12c6215897dd88fca51d8ce858 Mon Sep 17 00:00:00 2001 From: ojohansson <ojohansson@1198438.no-reply.drupal.org> Date: Fri, 18 Jan 2013 10:21:01 -0800 Subject: [PATCH] Issue #1848726 by ojohansson, twistor: Fixed Hash check fails when running multiple importers on cron. --- plugins/FeedsProcessor.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index 32a57197..aea7df67 100755 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -763,11 +763,7 @@ abstract class FeedsProcessor extends FeedsPlugin { * Empty/NULL/FALSE strings return d41d8cd98f00b204e9800998ecf8427e */ protected function hash($item) { - static $serialized_mappings; - if (!$serialized_mappings) { - $serialized_mappings = serialize($this->config['mappings']); - } - return hash('md5', serialize($item) . $serialized_mappings); + return hash('md5', serialize($item) . serialize($this->config['mappings'])); } /** -- GitLab