Skip to content

Commit 1c654fd

Browse files
The == matching is not strong enough; critical bug causing the plugin to be disabled when it shouldn't be
1 parent a8439a3 commit 1c654fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ public function buildPHPConfig()
289289

290290
foreach (UI::settingsOfType(UI::SETTING_INPUT_TYPE_BOOLEAN) as $setting) {
291291

292-
if (isset($config[$setting]) && $config[$setting] == 'false') {
292+
if (isset($config[$setting]) && $config[$setting] === 'false') {
293293
$config[$setting] = false;
294-
} else if (isset($config[$setting]) && $config[$setting] == 'true') {
294+
} else if (isset($config[$setting]) && $config[$setting] === 'true') {
295295
$config[$setting] = true;
296296
}
297297
}

0 commit comments

Comments
 (0)