Skip to content

Commit

Permalink
Fixed actividades
Browse files Browse the repository at this point in the history
  • Loading branch information
J. Marcelo Aviles Paco authored and J. Marcelo Aviles Paco committed May 17, 2023
1 parent 0b4d3d0 commit ac878c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Classes/MonoInvoicesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public function actividades()
if( $res->statusCode != 200 )
throw new ExceptionApi('Error de catalogo', $res);

return $res->json();
$res = $res->json();
if( is_object($res->data->RespuestaListaActividades->listaActividades) )
$res->data->RespuestaListaActividades->listaActividades = [$res->data->RespuestaListaActividades->listaActividades];
return $res;
}
/**
*
Expand Down

0 comments on commit ac878c1

Please sign in to comment.