diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-11-20 10:22:21 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-11-20 10:22:21 +0100 |
commit | 0c2f453750b742fde21ec2a8fdcf3beb9eff2faf (patch) | |
tree | ab935689f41797c114dca7dfe34e5b6190b59f20 /inc/poche | |
parent | d7aec74403a0ed93d3079883dbc99c291a7e6b33 (diff) | |
download | wallabag-0c2f453750b742fde21ec2a8fdcf3beb9eff2faf.tar.gz wallabag-0c2f453750b742fde21ec2a8fdcf3beb9eff2faf.tar.zst wallabag-0c2f453750b742fde21ec2a8fdcf3beb9eff2faf.zip |
Fix Undefined offset Notice (thx @vjousse)
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Database.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 1d3ff0c2..bf67de2a 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -166,7 +166,7 @@ class Database { | |||
166 | $query = $this->executeQuery($sql, $params); | 166 | $query = $this->executeQuery($sql, $params); |
167 | $entry = $query->fetchAll(); | 167 | $entry = $query->fetchAll(); |
168 | 168 | ||
169 | return $entry[0]; | 169 | return isset($entry[0]) ? $entry[0] : null; |
170 | } | 170 | } |
171 | 171 | ||
172 | public function getEntriesByView($view, $user_id, $limit = '') { | 172 | public function getEntriesByView($view, $user_id, $limit = '') { |