summaryrefslogtreecommitdiffstats
path: root/library/Director/RestApi/RestApiParams.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Director/RestApi/RestApiParams.php')
-rw-r--r--library/Director/RestApi/RestApiParams.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/Director/RestApi/RestApiParams.php b/library/Director/RestApi/RestApiParams.php
index c237ac5..741eeed 100644
--- a/library/Director/RestApi/RestApiParams.php
+++ b/library/Director/RestApi/RestApiParams.php
@@ -19,8 +19,9 @@ class RestApiParams
}
$exporter->enableHostServices();
}
+ /** @var ?string $properties */
$properties = $params->shift('properties');
- if ($properties !== null && strlen($properties)) {
+ if ($properties) {
$exporter->filterProperties(preg_split('/\s*,\s*/', $properties, -1, PREG_SPLIT_NO_EMPTY));
}
$exporter->resolveObjects($resolved);