mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Import: handle empty sets
This commit is contained in:
parent
38c4c06c77
commit
dd06be4a58
@ -102,8 +102,17 @@ continue;
|
|||||||
$db->beginTransaction();
|
$db->beginTransaction();
|
||||||
if (! $this->rowSetExists($rowset)) {
|
if (! $this->rowSetExists($rowset)) {
|
||||||
|
|
||||||
|
if (empty($rowSums)) {
|
||||||
|
$newRows = array();
|
||||||
|
} else {
|
||||||
$newRows = $this->newChecksums('imported_row', $rowSums);
|
$newRows = $this->newChecksums('imported_row', $rowSums);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($rowSums)) {
|
||||||
|
$newProperties = array();
|
||||||
|
} else {
|
||||||
$newProperties = $this->newChecksums('imported_property', array_keys($props));
|
$newProperties = $this->newChecksums('imported_property', array_keys($props));
|
||||||
|
}
|
||||||
|
|
||||||
$db->insert('imported_rowset', array('checksum' => $rowset));
|
$db->insert('imported_rowset', array('checksum' => $rowset));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user