瀏覽代碼

FIX #5972 #5734

Laurent Destailleur 8 年之前
父節點
當前提交
60e0b93ec1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/includes/restler/framework/Luracast/Restler/CommentParser.php

+ 1 - 1
htdocs/includes/restler/framework/Luracast/Restler/CommentParser.php

@@ -505,7 +505,7 @@ class CommentParser
             $data = explode('|', $data);
             $r['type'] = count($data) == 1 ? $data[0] : $data;
         }
-        if (isset($r['type']) && Text::endsWith($r['type'], '[]')) {
+        if (isset($r['type']) && is_string($r['type']) && Text::endsWith($r['type'], '[]')) {
             $r[static::$embeddedDataName]['type'] = substr($r['type'], 0, -2);
             $r['type'] = 'array';
         }