Skip to content

Commit

Permalink
Merge pull request #322 from jf-viguier/patch-1
Browse files Browse the repository at this point in the history
Fix warning in 1.7 when settings file does not exist
  • Loading branch information
Quetzacoalt91 authored Jun 17, 2019
2 parents a64e888 + eaf2233 commit d591f38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/PrestashopConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public function getPrestaShopVersion()
$this->psRootDir . '/app/AppKernel.php',
);
foreach ($files as $file) {
if (!file_exists($file)) {
continue;
}
$version = $this->findPrestaShopVersionInFile(file_get_contents($file));
if ($version) {
return $version;
Expand Down

0 comments on commit d591f38

Please sign in to comment.