mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
Merge pull request #7822 from nextcloud/check-if-realpath-returns-false
Check if realpath() returns false
This commit is contained in:
commit
3dc7d0fb90
1 changed files with 1 additions and 1 deletions
|
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue