From d2d26bf69c63821d0fa73f8b8b6dd78370f5d2d7 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 19 Nov 2013 22:19:36 +0100 Subject: SQL : UNIQUE(e.id_feed, e.guid) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Préparation de GUID en prévision de https://github.com/marienfressinaud/FreshRSS/issues/202 --- app/models/Entry.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/Entry.php') 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 { -- cgit v1.2.3