mirror of https://github.com/MISP/MISP
fix: method call on null
parent
d6ad402b31
commit
51e5df1ca7
|
@ -141,14 +141,13 @@ class Correlation extends AppModel
|
|||
if (Configure::read('MISP.background_jobs') && $jobId) {
|
||||
$this->Job = ClassRegistry::init('Job');
|
||||
$this->Job->id = $jobId;
|
||||
if (!$this->Job->exists()) {
|
||||
$jobId = false;
|
||||
}
|
||||
} else {
|
||||
$jobId = false;
|
||||
}
|
||||
|
||||
if(!$this->Job->exists()){
|
||||
$jobId = false;
|
||||
}
|
||||
|
||||
if (!empty($eventIds)) {
|
||||
$eventCount = count($eventIds);
|
||||
foreach ($eventIds as $j => $currentEventId) {
|
||||
|
|
Loading…
Reference in New Issue