Skip to content
Snippets Groups Projects
Unverified Commit 3dc7d0fb authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #7822 from nextcloud/check-if-realpath-returns-false

Check if realpath() returns false
parents e4e39910 1efde413
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ class MigrationService { ...@@ -186,7 +186,7 @@ class MigrationService {
protected function findMigrations() { protected function findMigrations() {
$directory = realpath($this->migrationsPath); $directory = realpath($this->migrationsPath);
if (!file_exists($directory) || !is_dir($directory)) { if ($directory === false || !file_exists($directory) || !is_dir($directory)) {
return []; return [];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment