diff --git a/library/Icinga/Data/DataArray/ArrayDatasource.php b/library/Icinga/Data/DataArray/ArrayDatasource.php index aa0b9ed27..09b731691 100644 --- a/library/Icinga/Data/DataArray/ArrayDatasource.php +++ b/library/Icinga/Data/DataArray/ArrayDatasource.php @@ -201,7 +201,7 @@ class ArrayDatasource implements Selectable $result = array(); $skipped = 0; foreach ($this->data as $key => $row) { - if (is_string($key) && $this->keyColumn !== null && !isset($row->{$this->keyColumn})) { + if ($this->keyColumn !== null && !isset($row->{$this->keyColumn})) { $row = clone $row; // Make sure that this won't affect the actual data $row->{$this->keyColumn} = $key; }