X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2FDatabase.class.php;h=11cccb7238d9d6a6e16695386152a25fc6789fa8;hb=0f6273cdb8c77436593782d42f271fddc7a7875d;hp=dddb2512fab6accb1c89e7669b11e951c5ca79f4;hpb=25052a76ca4524916f1f7fde40f977e16643680e;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index dddb2512..11cccb72 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -409,6 +409,7 @@ class Database { public function add($url, $title, $content, $user_id, $isFavorite=0, $isRead=0) { $sql_action = 'INSERT INTO entries ( url, title, content, user_id, is_fav, is_read ) VALUES (?, ?, ?, ?, ?, ?)'; $params_action = array($url, $title, $content, $user_id, $isFavorite, $isRead); + if ( !$this->executeQuery($sql_action, $params_action) ) { $id = null; }