forked from wallabag/wallabag
Fix Undefined offset Notice (thx @vjousse)
This commit is contained in:
@ -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 = '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user