diff --git a/library/Icinga/Data/DataArray/ArrayDatasource.php b/library/Icinga/Data/DataArray/ArrayDatasource.php index 25ba47ed1..11f8e59e8 100644 --- a/library/Icinga/Data/DataArray/ArrayDatasource.php +++ b/library/Icinga/Data/DataArray/ArrayDatasource.php @@ -138,7 +138,8 @@ class ArrayDatasource implements Selectable if (empty($result)) { return false; } - return $result[0]; + + return array_shift($result); } /**