[ticket/12375] Fix broken attachment deletion.

The response is already parsed and when running it through parseJSON returned
null prior to 1.9. Now there's an actual error thrown, so the function is
returning and thus leaving the attachment row intact.

PHPBB3-12375
This commit is contained in:
Cesar G 2014-04-08 21:49:15 -07:00
parent 0e3e715a48
commit 934696766a

View file

@ -253,10 +253,7 @@ phpbb.plupload.deleteFile = function(row, attachId) {
};
var done = function(response) {
var json = {};
try {
json = $.parseJSON(response);
} catch (e) {
if (typeof response !== 'object') {
return;
}