Skip to content
Snippets Groups Projects
Commit 23512e81 authored by Sean Femouw's avatar Sean Femouw Committed by Aaron Bauman
Browse files

Issue #3389025 by sean_fremouw: Null first parameter values are deprecated in strtotime()

parent 172f0ad9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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);
......
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