summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-12 22:29:10 +0100
committerGitHub <noreply@github.com>2018-01-12 22:29:10 +0100
commit3dc7d0fb900eec8b792768505299ba73300efb89 (patch)
tree6c0797c776a7d9d6d8318b0583409da14fcef0b9
parente4e39910f30b928abaa68ca2cd9c36937ea4857a (diff)
parent1efde413337dbc96f1c86b3522d83a4313d56c20 (diff)
downloadnextcloud-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.php2
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 [];
}