concrete5/concrete5-5.7.0 — pull request #415 by EC-Joe (2014-07-11 00:53:21+00:00)
Title: File getJSONObject errors when no version exists (such as on delete)

trying again since I butchered my last pull request...

So it seems like most of the other scenarios were cleared up at some point between last night and today via other fixes, however i'm still getting a "getJSONObject function not found" error when deleting files. Upon further investigation I found that the version is actually gone by the time the function gets called. Checking if we have any active versions on the file and returning null if not seems to fix the issue and so far I haven't found that it has broken anything else.