Skip to content

Commit

Permalink
Check file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jf-viguier authored and Quetzacoalt91 committed Jun 17, 2019
1 parent 4418364 commit 758a302
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/PrestashopConfiguration.php
Expand Up @@ -78,7 +78,10 @@ public function getPrestaShopVersion()
$this->psRootDir . '/app/AppKernel.php',
);
foreach ($files as $file) {
$version = $this->findPrestaShopVersionInFile(@file_get_contents($file));
if (!file_exists($file)) {
continue;
}
$version = $this->findPrestaShopVersionInFile(file_get_contents($file));
if ($version) {
return $version;
}
Expand Down

0 comments on commit 758a302

Please sign in to comment.