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

Issue #1690434 by twistor | jzornig: Fixed Notice: Undefined variable: job in...

Issue #1690434 by twistor | jzornig: Fixed Notice: Undefined variable: job in FeedsSource->scheduleClear() (line 319 of sites/all/modules/feeds/includes/FeedsSource.inc).
parent 32846d4f
No related branches found
No related tags found
No related merge requests found
...@@ -305,18 +305,19 @@ class FeedsSource extends FeedsConfigurable { ...@@ -305,18 +305,19 @@ class FeedsSource extends FeedsConfigurable {
* Schedule background clearing tasks. * Schedule background clearing tasks.
*/ */
public function scheduleClear() { public function scheduleClear() {
// Schedule as soon as possible if batch is not complete. $job = array(
if ($this->progressClearing() !== FEEDS_BATCH_COMPLETE) { 'type' => $this->id,
$job = array( 'id' => $this->feed_nid,
'type' => $this->id, 'period' => 0,
'id' => $this->feed_nid, 'periodic' => TRUE,
'period' => 0, );
'periodic' => TRUE, // Remove job if batch is complete.
); if ($this->progressClearing() === FEEDS_BATCH_COMPLETE) {
JobScheduler::get('feeds_source_clear')->set($job); JobScheduler::get('feeds_source_clear')->remove($job);
} }
// Schedule as soon as possible if batch is not complete.
else { else {
JobScheduler::get('feeds_source_clear')->remove($job); JobScheduler::get('feeds_source_clear')->set($job);
} }
} }
......
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