Allowed empty content to be returned from the server

This commit is contained in:
Andreas Stöckel 2010-06-04 15:22:01 +00:00
parent ff1c3b9be1
commit 75651489a7

View File

@ -86,7 +86,7 @@ egw_json_request.prototype.alertFunc = function(_message, _details)
/* Internal function which handles the response from the server */ /* Internal function which handles the response from the server */
egw_json_request.prototype.handleResponse = function(data, textStatus, XMLHttpRequest) egw_json_request.prototype.handleResponse = function(data, textStatus, XMLHttpRequest)
{ {
if (data.response) if (data && data.response)
{ {
var hasResponse = false; var hasResponse = false;
for (var i = 0; i < data.response.length; i++) for (var i = 0; i < data.response.length; i++)