diff --git a/library/Director/Core/CoreApi.php b/library/Director/Core/CoreApi.php index 49b2a3ea..cb1e48b0 100644 --- a/library/Director/Core/CoreApi.php +++ b/library/Director/Core/CoreApi.php @@ -54,7 +54,10 @@ class CoreApi $params->attrs = $attrs; } $url = 'objects/' . urlencode(strtolower($pluraltype)) . '/' . rawurlencode($name) . '?all_joins=1'; - return $this->client->get($url, $params)->getResult('name'); + $res = $this->client->get($url, $params)->getResult('name'); + + // TODO: check key, throw + return $res[$name]; } public function getConstants()