1
0
Fork 0

Ensure the bin directory exists before checking empty

Line 130 has similar logic so avoided doing the check withiin `isDirEmpty()`
pull/4441/head
Gavin Staniforth 2015-09-23 13:46:35 +01:00
parent 41a87a3ae7
commit c1e60a0abd
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class LibraryInstaller implements InstallerInterface
}
// attempt removing the bin dir in case it is left empty
if ($this->filesystem->isDirEmpty($this->binDir)) {
if ((is_dir($this->binDir)) && ($this->filesystem->isDirEmpty($this->binDir))) {
@rmdir($this->binDir);
}
}