diff --git a/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php b/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php index 4fc36225d68219fdbe53e82885110769bba33be8..57cf96bed12a2917a7d5635e7ed7732db1f7d384 100644 --- a/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php +++ b/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php @@ -175,7 +175,7 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi $pull_trigger_date = $sf_object->field($mapping->getPullTriggerDate()); - $sf_record_updated = strtotime($pull_trigger_date); + $sf_record_updated = $pull_trigger_date ? strtotime($pull_trigger_date) : 0; $mapped_object ->setDrupalEntity($entity) diff --git a/modules/salesforce_pull/src/QueueHandler.php b/modules/salesforce_pull/src/QueueHandler.php index f0df494d8dc97982f1791c5bfe4f48be274be315..6919858f1124c69ba380f58136bea11868edcc98 100644 --- a/modules/salesforce_pull/src/QueueHandler.php +++ b/modules/salesforce_pull/src/QueueHandler.php @@ -290,7 +290,7 @@ class QueueHandler { if ($force_pull || $event->isEnqueueAllowed()) { $this->enqueueRecord($mapping, $record, $force_pull); } - $record_time = strtotime($record->field($triggerField)); + $record_time = $record->field($triggerField) ? strtotime($record->field($triggerField)) : 0; if ($max_time < $record_time) { $max_time = $record_time; $mapping->setLastPullTime($max_time);