mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +02:00
parent
0c31bae792
commit
ab8624d2f5
@ -437,6 +437,9 @@ Value AExpression::OpIndexer(const AExpression *expr, const Dictionary::Ptr& loc
|
|||||||
if (value.IsObjectType<Dictionary>()) {
|
if (value.IsObjectType<Dictionary>()) {
|
||||||
Dictionary::Ptr dict = value;
|
Dictionary::Ptr dict = value;
|
||||||
return dict->Get(index);
|
return dict->Get(index);
|
||||||
|
} else if (value.IsObjectType<Array>()) {
|
||||||
|
Array::Ptr arr = value;
|
||||||
|
return arr->Get(index);
|
||||||
} else if (value.IsObjectType<Object>()) {
|
} else if (value.IsObjectType<Object>()) {
|
||||||
Object::Ptr object = value;
|
Object::Ptr object = value;
|
||||||
const Type *type = object->GetReflectionType();
|
const Type *type = object->GetReflectionType();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user