Fixed issue with boolean options evaluating to true
This commit is contained in:
@ -57,13 +57,19 @@ class Manifest
|
||||
|
||||
foreach ($tag->getChildren() as $child) switch ($child->getTagName()) {
|
||||
case 'library':
|
||||
$mf->setIsLibrary($child->getValue()?:true);
|
||||
$val = $child->getValue();
|
||||
if ($val === null) $val = true;
|
||||
$mf->setIsLibrary($val);
|
||||
break;
|
||||
case 'compress':
|
||||
$mf->setCompression($child->getValue()?:true);
|
||||
$val = $child->getValue();
|
||||
if ($val === null) $val = true;
|
||||
$mf->setCompression($val);
|
||||
break;
|
||||
case 'verbatim':
|
||||
$mf->setVerbatim($child->getValue()?:true);
|
||||
$val = $child->getValue();
|
||||
if ($val === null) $val = true;
|
||||
$mf->setVerbatim($val);
|
||||
break;
|
||||
case 'stub':
|
||||
$mf->setStubFile($child->getValue());
|
||||
|
Reference in New Issue
Block a user