summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 [];
}