diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-12 15:45:51 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-12 19:40:25 +0100 |
commit | 1efde413337dbc96f1c86b3522d83a4313d56c20 (patch) | |
tree | 6c0797c776a7d9d6d8318b0583409da14fcef0b9 /lib/private/DB/MigrationService.php | |
parent | e4e39910f30b928abaa68ca2cd9c36937ea4857a (diff) | |
download | nextcloud-server-1efde413337dbc96f1c86b3522d83a4313d56c20.tar.gz nextcloud-server-1efde413337dbc96f1c86b3522d83a4313d56c20.zip |
Check if realpath() returns false
realpath() returns false in case the directory does not exist. Found it while preparing strict_typing for PHP7+.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r-- | lib/private/DB/MigrationService.php | 2 |
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 []; } |