phpbali-org / phpbali-site

[UNMAINTAINED] Site of PHPBali
12 stars 6 forks source link

Get Internal Server Error when trying to get last event form API #107

Closed aryanjaya closed 5 years ago

aryanjaya commented 5 years ago

Condition: When I try to get last event using api/event/last, i get "Internal Server Error" with message "Trying to get property 'id' of non-object". This happen because I don't have any event in my database.

Reproduce:

Idea for a solution:

kresnasatya commented 5 years ago

Looks good to me. Please execute.

RobinTHOREL commented 5 years ago

I'll look forward this issue

kresnasatya commented 5 years ago

Hi @RobinTHOREL, I already check the pull request by @aryanjaya and merged into our repository. Thank you @aryanjaya. 🙏