mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-29 19:10:29 +00:00
Fix Undefined offset Notice (thx @vjousse)
This commit is contained in:
parent
d7aec74403
commit
0c2f453750
1 changed files with 1 additions and 1 deletions
|
@ -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 = '') {
|
||||
|
|
Loading…
Reference in a new issue