update_versions: fix bug that choked on <foo>1</foo> XML boolean

This commit is contained in:
David Anderson 2015-12-23 17:16:31 -08:00
parent bb2f9339b4
commit 90cb8b9580
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ function confirm($fds, $v) {
function get_bool($xml_element, $name) {
foreach($xml_element->xpath($name) as $x) {
$s = trim((string) $x);
if ($s == "" || int($s)>0) return true;
if ($s == "" || (int)$s>0) return true;
}
return false;
}