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 {
* Schedule background clearing tasks.
*/
public function scheduleClear() {
// Schedule as soon as possible if batch is not complete.
if ($this->progressClearing() !== FEEDS_BATCH_COMPLETE) {
$job = array(
'type' => $this->id,
'id' => $this->feed_nid,
'period' => 0,
'periodic' => TRUE,
);
JobScheduler::get('feeds_source_clear')->set($job);
$job = array(
'type' => $this->id,
'id' => $this->feed_nid,
'period' => 0,
'periodic' => TRUE,
);
// Remove job if batch is complete.
if ($this->progressClearing() === FEEDS_BATCH_COMPLETE) {
JobScheduler::get('feeds_source_clear')->remove($job);
}
// Schedule as soon as possible if batch is not complete.
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