Merge pull request #40 from litvinenkow/patch-2

Fix: setOptions
This commit is contained in:
Ivan Shalganov 2013-08-06 23:26:29 -07:00
commit 8a03a84908

View File

@ -848,7 +848,7 @@ class Fenom
{ {
foreach ($values as $key => $value) { foreach ($values as $key => $value) {
if (isset($options[$key])) { if (isset($options[$key])) {
if ($options[$key]) { if ($value) {
$mask |= $options[$key]; $mask |= $options[$key];
} else { } else {
$mask &= ~$options[$key]; $mask &= ~$options[$key];