Fixing fatal error on dashboard, also adding slim view for installs with more than 10 projects
This commit is contained in:
parent
43fef1539f
commit
53bca31c2a
4 changed files with 109 additions and 74 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue