Merge pull request #7822 from nextcloud/check-if-realpath-returns-false
Check if realpath() returns false
This commit is contained in:
commit
3dc7d0fb90
|
@ -186,7 +186,7 @@ class MigrationService {
|
||||||
|
|
||||||
protected function findMigrations() {
|
protected function findMigrations() {
|
||||||
$directory = realpath($this->migrationsPath);
|
$directory = realpath($this->migrationsPath);
|
||||||
if (!file_exists($directory) || !is_dir($directory)) {
|
if ($directory === false || !file_exists($directory) || !is_dir($directory)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue