mirror of https://github.com/MISP/MISP
parent
8e256a8ce1
commit
3a8efe4bf8
|
@ -1439,6 +1439,10 @@ class MispObject extends AppModel
|
|||
while ($continue) {
|
||||
$this->Whitelist = ClassRegistry::init('Whitelist');
|
||||
$results = $this->fetchObjects($user, $params, $continue);
|
||||
if (empty($results)) {
|
||||
$loop = false;
|
||||
return true;
|
||||
}
|
||||
if ($params['includeSightingdb']) {
|
||||
$this->Sightingdb = ClassRegistry::init('Sightingdb');
|
||||
$results = $this->Sightingdb->attachToObjects($results, $user);
|
||||
|
|
Loading…
Reference in New Issue