IcingaConfig: pgsql workaround :(

This commit is contained in:
Thomas Gelf 2015-06-23 14:12:39 +02:00
parent 3087776f6b
commit 06935c442d
1 changed files with 5 additions and 0 deletions

View File

@ -258,6 +258,11 @@ class IcingaConfig
->limit(1);
$this->lastActivityChecksum = $this->db->fetchOne($query);
// PgSQL workaround:
if (is_resource($this->lastActivityChecksum)) {
$this->lastActivityChecksum = stream_get_contents($this->lastActivityChecksum);
}
}
return $this->lastActivityChecksum;