From 75651489a711cd414cdaedfabd336fd9725476b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Fri, 4 Jun 2010 15:22:01 +0000 Subject: [PATCH] Allowed empty content to be returned from the server --- phpgwapi/js/egw_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_json.js b/phpgwapi/js/egw_json.js index e92a54ba8c..825fe37e63 100644 --- a/phpgwapi/js/egw_json.js +++ b/phpgwapi/js/egw_json.js @@ -86,7 +86,7 @@ egw_json_request.prototype.alertFunc = function(_message, _details) /* Internal function which handles the response from the server */ egw_json_request.prototype.handleResponse = function(data, textStatus, XMLHttpRequest) { - if (data.response) + if (data && data.response) { var hasResponse = false; for (var i = 0; i < data.response.length; i++)