Fix package id

main
Jordi Boggiano 12 years ago
parent 18492a1f84
commit 9369f48dcd

@ -223,7 +223,7 @@ class Pool
$candidates[] = $candidate; $candidates[] = $candidate;
if ($candidate->getId() < 1) { if ($candidate->getId() < 1) {
$candidate->setId($this->id++); $candidate->setId($this->id++);
$this->packages[$candidate->getId()] = $candidate; $this->packages[$this->id - 2] = $candidate;
} }
} }
} }

Loading…
Cancel
Save