mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 02:39:24 +01: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);
|
||||
$entry = $query->fetchAll();
|
||||
|
||||
return $entry[0];
|
||||
return isset($entry[0]) ? $entry[0] : null;
|
||||
}
|
||||
|
||||
public function getEntriesByView($view, $user_id, $limit = '') {
|
||||
|
Loading…
Reference in New Issue
Block a user