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:
parent
d7aec74403
commit
0c2f453750
@ -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 = '') {
|
||||||
|
Loading…
Reference in New Issue
Block a user