fix backend sanity failure (take 2)

This commit is contained in:
Andrew Dolgov 2005-12-30 17:16:47 +01:00
parent 57d7223aee
commit bc2369382c
2 changed files with 5 additions and 1 deletions

View File

@ -748,7 +748,9 @@
}
if ($subop == "sanityCheck") {
sanity_check($link);
if (sanity_check($link)) {
print "<error error-code=\"0\"/>";
}
}
if ($subop == "globalPurge") {

View File

@ -111,6 +111,8 @@ function backend_sanity_check_callback() {
if (xmlhttp.readyState == 4) {
try {
alert(xmlhttp.responseText);
if (!xmlhttp.responseXML) {
fatalError(3);