mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 02:47:45 +02:00
Boolean should be compared strictly
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user