aboutsummaryrefslogtreecommitdiff
path: root/app/models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-19 22:19:36 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-19 22:19:36 +0100
commitd2d26bf69c63821d0fa73f8b8b6dd78370f5d2d7 (patch)
tree801eb09c18805a7afee48e914871a166b0dba2dc /app/models/Entry.php
parentcebf1d9fd9e8479dac300e2fad5ba1c41927b850 (diff)
SQL : UNIQUE(e.id_feed, e.guid)
Préparation de GUID en prévision de https://github.com/marienfressinaud/FreshRSS/issues/202
Diffstat (limited to 'app/models/Entry.php')
-rwxr-xr-xapp/models/Entry.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php
index 684b1921a..da296227a 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -200,7 +200,7 @@ class EntryDAO extends Model_pdo {
$values = array (
$valuesTmp['id'],
- substr($valuesTmp['guid'], 0, 511),
+ substr($valuesTmp['guid'], 0, 760),
substr($valuesTmp['title'], 0, 255),
substr($valuesTmp['author'], 0, 255),
base64_encode (gzdeflate (serialize ($valuesTmp['content']))),
@@ -260,7 +260,6 @@ class EntryDAO extends Model_pdo {
. 'WHERE e.id=?';
$values = array ($is_favorite ? 1 : 0, $id);
$stm = $this->bd->prepare ($sql);
-
if ($stm && $stm->execute ($values)) {
return $stm->rowCount();
} else {