Skip to content

Commit

Permalink
Merge pull request #2373 in SW/shopware from bugfix/master/sw-10898-f…
Browse files Browse the repository at this point in the history
…ix-size-checks-installer to master

* commit '912a7f33d7ce4ae06d9c09ad7ec9774f62213799':
  SW-10898 - Fix checks for php formated sizes like 1G
  • Loading branch information
Oliver Skroblin committed Apr 2, 2015
2 parents f1bdbd7 + 912a7f3 commit 8c979d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recovery/install/src/Requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ protected function check($name)
} elseif (function_exists($name)) {
return true;
} elseif (($value = ini_get($name)) !== null) {
if (strtolower($value) == 'off' || $value == 0) {
if (strtolower($value) == 'off' || (is_numeric($value) && $value == 0)) {
return false;
} elseif (strtolower($value) == 'on' || $value == 1) {
} elseif (strtolower($value) == 'on' || (is_numeric($value) && $value == 1)) {
return true;
} else {
return $value;
Expand Down

0 comments on commit 8c979d0

Please sign in to comment.