aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Database.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-09 23:30:20 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-09 23:30:20 +0200
commitb58e261db9f3ea8b9c4c51ef9f0e393942915e21 (patch)
treec648457b09fdbee704fd7f870302faad8bc7ea08 /inc/poche/Database.class.php
parentd8d1542e52e78b481305893a873f613dc60293e1 (diff)
downloadwallabag-b58e261db9f3ea8b9c4c51ef9f0e393942915e21.tar.gz
wallabag-b58e261db9f3ea8b9c4c51ef9f0e393942915e21.tar.zst
wallabag-b58e261db9f3ea8b9c4c51ef9f0e393942915e21.zip
bug in downloading pictures : article content wasn't updated anymore
Diffstat (limited to 'inc/poche/Database.class.php')
-rw-r--r--inc/poche/Database.class.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index cd5a9a31..84916b83 100644
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -184,6 +184,13 @@ class Database {
184 return $entries; 184 return $entries;
185 } 185 }
186 186
187 public function updateContent($id, $content, $user_id) {
188 $sql_action = 'UPDATE entries SET content = ? WHERE id=? AND user_id=?';
189 $params_action = array($content, $id, $user_id);
190 $query = $this->executeQuery($sql_action, $params_action);
191 return $query;
192 }
193
187 public function add($url, $title, $content, $user_id) { 194 public function add($url, $title, $content, $user_id) {
188 $sql_action = 'INSERT INTO entries ( url, title, content, user_id ) VALUES (?, ?, ?, ?)'; 195 $sql_action = 'INSERT INTO entries ( url, title, content, user_id ) VALUES (?, ?, ?, ?)';
189 $params_action = array($url, $title, $content, $user_id); 196 $params_action = array($url, $title, $content, $user_id);