aboutsummaryrefslogtreecommitdiff
path: root/app/models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-24 17:08:48 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-24 17:08:48 +0100
commit08ff116f040f4c735722963e39fd6eb3716ef352 (patch)
treef4716b8d7303701bfb6f5cec1d11ca0b6808c2d6 /app/models/Entry.php
parent2e387749d55fe6a39e9c77c7272faf9c8d71591b (diff)
OPML : corrections import/export
À tester plus. En particulier, ne supporte pas bien les fichiers OPML qui sont à la fois avec des entités HTML et pas en UTF-8. Devrait corriger https://github.com/marienfressinaud/FreshRSS/issues/287
Diffstat (limited to 'app/models/Entry.php')
-rwxr-xr-xapp/models/Entry.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php
index da296227a..e2493e266 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -213,7 +213,7 @@ class EntryDAO extends Model_pdo {
);
if ($stm && $stm->execute ($values)) {
- return $stm->rowCount();
+ return $this->bd->lastInsertId();
} else {
$info = $stm->errorInfo();
if ((int)($info[0] / 1000) !== 23) { //Filter out "SQLSTATE Class code 23: Constraint Violation" because of expected duplicate entries