Formatting

This commit is contained in:
Vincent Jousse 2013-12-13 22:42:13 +01:00
parent bc8c4f7434
commit 14330bfa68
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class EntryRepository
public function getEntries($userId = 1) {
$sql = "SELECT * FROM entries where user_id = ?";
$entries = $this->db->fetchAll($sql, array($userId));
return $entries ? $entries : array();
}