Fix Undefined offset Notice (thx @vjousse)

This commit is contained in:
Nicolas Lœuillet 2013-11-20 10:22:21 +01:00
parent d7aec74403
commit 0c2f453750

View file

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