Skip to content

Commit

Permalink
より正確な比較に修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kanako-kina committed Nov 19, 2018
1 parent 0e9d42a commit 50d4d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eccube/Service/SystemService.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public function switchMaintenance($isEnable = false)
$isMaintenanceMode = $this->isMaintenanceMode();
$path = $this->container->getParameter('eccube_content_maintenance_file_path');

if ($isEnable && $isMaintenanceMode == false) {
if ($isEnable && $isMaintenanceMode === false) {
touch($path);
} elseif ($isEnable == false && $isMaintenanceMode) {
} elseif ($isEnable === false && $isMaintenanceMode) {
unlink($path);
}

Expand Down

0 comments on commit 50d4d2f

Please sign in to comment.