Simple forum software for building great communities.
Go to file
Dave Shoreman fb8ad8fe9a Fix Internal Server Error for blank API requests
Attempting to send an empty body to the create and update endpoints will
result in Flarum outputting "Internal Server Error" as plain text,
instead of failing gracefully with a json-ised validation exception.

This commit adds an empty array as the third parameter to array_get,
which sets the default value and thus allows Flarum to do its thing.
2017-04-06 04:16:40 +01:00
extensions/tags Fix Internal Server Error for blank API requests 2017-04-06 04:16:40 +01:00