diff --git a/BibliotecaUFABC/app/src/main/java/com/nintersoft/bibliotecaufabc/webviewclients/ReservationWebClient.java b/BibliotecaUFABC/app/src/main/java/com/nintersoft/bibliotecaufabc/webviewclients/ReservationWebClient.java index 656a11c..27b5409 100644 --- a/BibliotecaUFABC/app/src/main/java/com/nintersoft/bibliotecaufabc/webviewclients/ReservationWebClient.java +++ b/BibliotecaUFABC/app/src/main/java/com/nintersoft/bibliotecaufabc/webviewclients/ReservationWebClient.java @@ -92,7 +92,7 @@ public void run() { if (result.getBoolean("hasErrorDiv")) ((ReservationActivity)mContext).setUserNameNoReservation(result.getString("username")); else { - ((ReservationActivity)mContext).setReservationBooks(result.getJSONObject("reservationBooks").toString()); + ((ReservationActivity)mContext).setReservationBooks(result.getJSONArray("reservationBooks").toString()); ((ReservationActivity)mContext).setupInterface(true); } } catch (JSONException e){