1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-23 17:42:15 -05:00

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); $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 = '') {