fix bugs introduced by two previous patches
This commit is contained in:
parent
5edfe3038d
commit
9cbca41fbd
|
@ -358,7 +358,8 @@ if (!xmlhttp_rpc && typeof XMLHttpRequest!='undefined') {
|
|||
function parse_counters(reply, f_document, title_obj) {
|
||||
try {
|
||||
for (var l = 0; l < reply.childNodes.length; l++) {
|
||||
if (!reply.childNodes[l] || !reply.childNodes[l].getAttribute) {
|
||||
if (!reply.childNodes[l] ||
|
||||
typeof(reply.childNodes[l].getAttribute) == "undefined") {
|
||||
// where did this come from?
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -870,9 +870,8 @@
|
|||
$error_code = 5;
|
||||
}
|
||||
|
||||
print "<error error-code='$error_code'/>";
|
||||
|
||||
if ($error_code != 0) {
|
||||
print "<error error-code='$error_code'/>";
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue