abort_with_warning iets robuuster op niet gedefinieerde JSON

svn path=/Website/branches/v2017.1/; revision=34550
This commit is contained in:
Jos Groot Lipman
2017-07-06 09:41:09 +00:00
parent 3145e345d7
commit 89368f0d31

View File

@@ -1127,7 +1127,7 @@ function abort_with_warning(warning, code)
Response.Status = code;
Response.End;
}
else if (JSON_Result && JSON)
else if (JSON_Result && typeof JSON != "undefined")
{
Response.Write(JSON.stringify({ warning: warning, keepForm: true }));
}