Boolean should be compared strictly

This commit is contained in:
Andy Miller
2016-04-28 11:56:10 -06:00
parent 7463bad8dd
commit 1f9c7ea8a2

View File

@@ -108,7 +108,7 @@ class Installer
$is_install = true;
$installer = self::loadInstaller($installer_file_folder, $is_install);
if (isset($options['is_update']) && $options['is_update'] == true) {
if (isset($options['is_update']) && $options['is_update'] === true) {
$method = 'preUpdate';
} else {
$method = 'preInstall';
@@ -139,7 +139,7 @@ class Installer
Folder::delete($tmp);
$zip->close();
if (isset($options['is_update']) && $options['is_update'] == true) {
if (isset($options['is_update']) && $options['is_update'] === true) {
$method = 'postUpdate';
} else {
$method = 'postInstall';