diff --git a/src/Poche/Api/EntryApi.php b/src/Poche/Api/EntryApi.php index 878cae1..7ec71e5 100644 --- a/src/Poche/Api/EntryApi.php +++ b/src/Poche/Api/EntryApi.php @@ -11,7 +11,8 @@ class EntryApi } public function getEntries() { - //Todo - return array(); + $sql = "SELECT * FROM entries"; + $entries = $this->db->fetchAssoc($sql); + return ($entries ? $entries : array()); } }