aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-11-20 10:22:21 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-11-20 10:22:21 +0100
commit0c2f453750b742fde21ec2a8fdcf3beb9eff2faf (patch)
treeab935689f41797c114dca7dfe34e5b6190b59f20 /inc
parentd7aec74403a0ed93d3079883dbc99c291a7e6b33 (diff)
downloadwallabag-0c2f453750b742fde21ec2a8fdcf3beb9eff2faf.tar.gz
wallabag-0c2f453750b742fde21ec2a8fdcf3beb9eff2faf.tar.zst
wallabag-0c2f453750b742fde21ec2a8fdcf3beb9eff2faf.zip
Fix Undefined offset Notice (thx @vjousse)
Diffstat (limited to 'inc')
-rw-r--r--inc/poche/Database.class.php2
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 = '') {