Fixing fatal error on dashboard, also adding slim view for installs with more than 10 projects

This commit is contained in:
Dan Cryer 2014-12-03 20:26:32 +00:00
commit 53bca31c2a
4 changed files with 109 additions and 74 deletions

View file

@ -61,8 +61,9 @@ class BuildStore extends BuildStoreBase
$stmt->bindValue(':status', $status);
if ($stmt->execute()) {
$res = $stmt->fetch(\PDO::FETCH_ASSOC);
return new Build($res);
if ($data = $stmt->fetch(\PDO::FETCH_ASSOC)) {
return new Build($data);
}
} else {
return array();
}