Fix errors in case packages is empty
parent
56e43e4397
commit
9630f44922
|
@ -104,6 +104,7 @@ class Locker
|
||||||
{
|
{
|
||||||
$lock = array(
|
$lock = array(
|
||||||
'hash' => $this->hash,
|
'hash' => $this->hash,
|
||||||
|
'packages' => array(),
|
||||||
);
|
);
|
||||||
foreach ($packages as $package) {
|
foreach ($packages as $package) {
|
||||||
$name = $package->getPrettyName();
|
$name = $package->getPrettyName();
|
||||||
|
|
Loading…
Reference in New Issue