fixed potential error
parent
1cca62dc97
commit
d5ba884f8b
|
@ -43,7 +43,11 @@ class FilesystemRepository extends ArrayRepository implements WritableRepository
|
||||||
{
|
{
|
||||||
parent::initialize();
|
parent::initialize();
|
||||||
|
|
||||||
|
$packages = null;
|
||||||
|
if ($this->file->exists()) {
|
||||||
$packages = $this->file->read();
|
$packages = $this->file->read();
|
||||||
|
}
|
||||||
|
|
||||||
if (is_array($packages)) {
|
if (is_array($packages)) {
|
||||||
$loader = new ArrayLoader();
|
$loader = new ArrayLoader();
|
||||||
foreach ($packages as $package) {
|
foreach ($packages as $package) {
|
||||||
|
|
Loading…
Reference in New Issue