1
0
Fork 0

Fix errors in case packages is empty

pull/174/head
Jordi Boggiano 2012-01-06 13:27:16 +01:00
parent 56e43e4397
commit 9630f44922
1 changed files with 1 additions and 0 deletions

View File

@ -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();