Skip to content

Commit 3dc7d0f

Browse files
authored
Merge pull request #7822 from nextcloud/check-if-realpath-returns-false
Check if realpath() returns false
2 parents e4e3991 + 1efde41 commit 3dc7d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/DB/MigrationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function getAvailableVersions() {
186186

187187
protected function findMigrations() {
188188
$directory = realpath($this->migrationsPath);
189-
if (!file_exists($directory) || !is_dir($directory)) {
189+
if ($directory === false || !file_exists($directory) || !is_dir($directory)) {
190190
return [];
191191
}
192192

0 commit comments

Comments
 (0)