From 1f9c7ea8a297fcd3a9d35951af61cab0a5c01352 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 28 Apr 2016 11:56:10 -0600 Subject: [PATCH] Boolean should be compared strictly --- system/src/Grav/Common/GPM/Installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/GPM/Installer.php b/system/src/Grav/Common/GPM/Installer.php index 58605d0a0..6d701ab09 100644 --- a/system/src/Grav/Common/GPM/Installer.php +++ b/system/src/Grav/Common/GPM/Installer.php @@ -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';