X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fui.js;h=63751015851684393209f7372f911096ac09003e;hp=60abf40a4b42793f331645f98e9adbc04a6193c0;hb=b5291db1cf7dff0d45dc632de2b7b4d377b5db97;hpb=c53a1969fd519687ca4d581077c8dc3792169bb8 diff --git a/js/ui.js b/js/ui.js index 60abf40..6375101 100644 --- a/js/ui.js +++ b/js/ui.js @@ -528,7 +528,7 @@ function reportUploadStatus(aSuccess, aResponse) { if (aSuccess) { document.getElementById("uploadSuccess").style.display = "block"; } - else if (aResponse["message"]) { + else if (aResponse && aResponse["message"]) { document.getElementById("uploadErrorMsg").textContent = aResponse["message"]; if (aResponse["errortype"]) { document.getElementById("uploadErrorMsg").textContent += " (" + aResponse["errortype"] + ")";