mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
Db: a few more PostgreSQL fixes
This commit is contained in:
parent
2704588a3a
commit
ed4f34272b
@ -172,7 +172,7 @@ class Db extends DbConnection
|
||||
)
|
||||
)->join(
|
||||
array('lt' => $smaller),
|
||||
null,
|
||||
'1 = 1',
|
||||
array()
|
||||
);
|
||||
|
||||
@ -183,7 +183,12 @@ class Db extends DbConnection
|
||||
{
|
||||
$sql = 'SELECT * FROM director_activity_log WHERE id = ' . (int) $id;
|
||||
|
||||
return $this->db()->fetchRow($sql);
|
||||
$result = $this->db()->fetchRow($sql);
|
||||
if (is_resource($result->checksum)) {
|
||||
$result->checksum = stream_get_contents($result->checksum);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function fetchActivityLogChecksumById($id, $binary = true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user