mirror of https://github.com/BOINC/boinc.git
update_versions: fix bug that choked on <foo>1</foo> XML boolean
This commit is contained in:
parent
bb2f9339b4
commit
90cb8b9580
|
@ -372,7 +372,7 @@ function confirm($fds, $v) {
|
||||||
function get_bool($xml_element, $name) {
|
function get_bool($xml_element, $name) {
|
||||||
foreach($xml_element->xpath($name) as $x) {
|
foreach($xml_element->xpath($name) as $x) {
|
||||||
$s = trim((string) $x);
|
$s = trim((string) $x);
|
||||||
if ($s == "" || int($s)>0) return true;
|
if ($s == "" || (int)$s>0) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue