syncrule/history: do not fetch activity if null

This commit is contained in:
Thomas Gelf 2016-05-23 14:29:49 +02:00
parent d435ca37f7
commit 05919baf5d

View File

@ -162,6 +162,7 @@ class SyncruleController extends ActionController
if ($runId = $this->params->get('run_id')) {
$this->view->run = SyncRun::load($runId, $db);
if ($this->view->run->last_former_activity !== null) {
$this->view->formerId = $db->fetchActivityLogIdByChecksum(
$this->view->run->last_former_activity
);
@ -171,6 +172,7 @@ class SyncruleController extends ActionController
);
}
}
}
protected function prepareRuleTabs($ruleId = null)
{