Enforce valid value for on/off type
This commit is contained in:
parent
6a6497956d
commit
f41c542ba0
@ -174,11 +174,8 @@ class Settings extends AbstractPart
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($booleanValue) {
|
$value = $booleanValue ? 'true' : 'false';
|
||||||
$this->settings[$settingName] = array('@attributes' => array());
|
$this->settings[$settingName] = array('@attributes' => array('w:val' => $value));
|
||||||
} else {
|
|
||||||
$this->settings[$settingName] = array('@attributes' => array('w:val' => 'false'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user