mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-07 14:09:35 -05:00
IcingaDbState: Fix postgres support
-.-
This commit is contained in:
parent
ffab7edcb3
commit
1d08c954ba
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ class IcingaDbState
|
|||
$serviceIds = [];
|
||||
$serviceResults = [];
|
||||
foreach ($this->backend->yieldAll($services->assembleSelect()) as $row) {
|
||||
$row->hex_id = bin2hex($row->id);
|
||||
$row->hex_id = bin2hex(is_resource($row->id) ? stream_get_contents($row->id) : $row->id);
|
||||
$serviceIds[] = $row->hex_id;
|
||||
$serviceResults[] = $row;
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ class IcingaDbState
|
|||
$hostIds = [];
|
||||
$hostResults = [];
|
||||
foreach ($this->backend->yieldAll($hosts->assembleSelect()) as $row) {
|
||||
$row->hex_id = bin2hex($row->id);
|
||||
$row->hex_id = bin2hex(is_resource($row->id) ? stream_get_contents($row->id) : $row->id);
|
||||
$hostIds[] = $row->hex_id;
|
||||
$hostResults[] = $row;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue