From 195375f055827968a245a7bf50876bf6680e3718 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 16 Nov 2014 18:03:58 +0100 Subject: [PATCH] Livestatus\Query: use calculated column headers --- library/Icinga/Protocol/Livestatus/Query.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Protocol/Livestatus/Query.php b/library/Icinga/Protocol/Livestatus/Query.php index 113377abf..bcb3dfae5 100644 --- a/library/Icinga/Protocol/Livestatus/Query.php +++ b/library/Icinga/Protocol/Livestatus/Query.php @@ -170,6 +170,10 @@ class Query extends SimpleQuery public function getColumnAliases() { + $this->columnsToString(); + return $this->preparedHeaders; + + // TODO: Remove once no longer needed: $aliases = array(); $hasCustom = false; foreach ($this->getColumns() as $key => $val) {