diff options
-rw-r--r-- | inc/store/sqlite.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php index 51054bc5..b2ae94a7 100644 --- a/inc/store/sqlite.class.php +++ b/inc/store/sqlite.class.php | |||
@@ -94,10 +94,10 @@ class Sqlite extends Store { | |||
94 | return $entries; | 94 | return $entries; |
95 | } | 95 | } |
96 | 96 | ||
97 | public function add() { | 97 | public function add($url, $title, $content) { |
98 | parent::__construct(); | 98 | parent::__construct(); |
99 | $sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)'; | 99 | $sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)'; |
100 | $params_action = array($url, $parametres_url['title'], $parametres_url['content']); | 100 | $params_action = array($url, $title, $content); |
101 | $query = $this->executeQuery($sql_action, $params_action); | 101 | $query = $this->executeQuery($sql_action, $params_action); |
102 | } | 102 | } |
103 | 103 | ||
@@ -133,4 +133,4 @@ class Sqlite extends Store { | |||
133 | $params_update = array($content, $id); | 133 | $params_update = array($content, $id); |
134 | $query = $this->executeQuery($sql_update, $params_update); | 134 | $query = $this->executeQuery($sql_update, $params_update); |
135 | } | 135 | } |
136 | } \ No newline at end of file | 136 | } |