diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 4bc055ed..edf89261 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1534,7 +1534,9 @@ class ApiV1Controller extends Controller $ancestors = $status->parent(); if($ancestors) { $ares = new Fractal\Resource\Item($ancestors, new StatusTransformer()); - $ancestors = $this->fractal->createData($ares)->toArray(); + $ancestors = [ + $this->fractal->createData($ares)->toArray() + ]; } else { $ancestors = []; }