pull/844/head
TimZ99 2020-02-04 16:40:08 +01:00
parent b668a0b842
commit ee5ab3a9ab
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 49 additions and 43 deletions

View File

@ -104,9 +104,15 @@ namespace {
'down' => 'off'
];
if (true === array_key_exists('status', $options) && true === array_key_exists(strtolower($options['status']), $possibleValues)) {
if (
true === array_key_exists('status', $options) &&
true === array_key_exists(strtolower($options['status']), $possibleValues)
) {
$status = $possibleValues[$options['status']];
} else if (true === array_key_exists('s', $options) && true === array_key_exists(strtolower($options['s']), $possibleValues)) {
} elseif (
true === array_key_exists('s', $options) &&
true === array_key_exists(strtolower($options['s']), $possibleValues)
) {
$status = $possibleValues[$options['s']];
}
}