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

Check if realpath() returns false
This commit is contained in:
Roeland Jago Douma 2018-01-12 22:29:10 +01:00 committed by GitHub
commit 3dc7d0fb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 [];
}