diff --git a/webservice/html/rest.php b/webservice/html/rest.php
index 68649ab563d064b609cada5ef9506fdc95462ea6..bd3532d57f6ca5ec90584cb366412e1b4441a334 100644
--- a/webservice/html/rest.php
+++ b/webservice/html/rest.php
@@ -580,7 +580,7 @@ class fdRestService extends fdRPCService
       foreach ($section['attrs'] as $attr) {
         if ($object->attrIsReadable($attr)) {
           // Add "" for monovalued attribute or [] for multivalued (only if the class used is SetAttribute)
-          if (get_class($attr) == "SetAttribute") {
+          if (get_class($attr) == "SetAttribute" || get_class($attr) == "OrderedArrayAttribute") {
             $attributes[$attr->getLdapName()] = [];
           } else {
             $attributes[$attr->getLdapName()] = "";