aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
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 = '') {