This commit is contained in:
Nicolas Lœuillet 2013-11-25 09:49:08 +01:00
commit defa7754a4

View file

@ -166,7 +166,7 @@ class Database {
$query = $this->executeQuery($sql, $params); $query = $this->executeQuery($sql, $params);
$entry = $query->fetchAll(); $entry = $query->fetchAll();
return $entry[0]; return isset($entry[0]) ? $entry[0] : null;
} }
public function getEntriesByView($view, $user_id, $limit = '') { public function getEntriesByView($view, $user_id, $limit = '') {