diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-01-12 22:29:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 22:29:10 +0100 |
commit | 3dc7d0fb900eec8b792768505299ba73300efb89 (patch) | |
tree | 6c0797c776a7d9d6d8318b0583409da14fcef0b9 | |
parent | e4e39910f30b928abaa68ca2cd9c36937ea4857a (diff) | |
parent | 1efde413337dbc96f1c86b3522d83a4313d56c20 (diff) | |
download | nextcloud-server-3dc7d0fb900eec8b792768505299ba73300efb89.tar.gz nextcloud-server-3dc7d0fb900eec8b792768505299ba73300efb89.zip |
Merge pull request #7822 from nextcloud/check-if-realpath-returns-false
Check if realpath() returns false
-rw-r--r-- | lib/private/DB/MigrationService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index 729f9753dfb..cbe5bd9b957 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -186,7 +186,7 @@ class MigrationService { protected function findMigrations() { $directory = realpath($this->migrationsPath); - if (!file_exists($directory) || !is_dir($directory)) { + if ($directory === false || !file_exists($directory) || !is_dir($directory)) { return []; } |