From 22e9fb02f838e2b6ac8c5dd504fad0446c5807dc Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 2 May 2013 23:28:04 +0200 Subject: Correction bug lors de la recherche d'un article (EntryDAO->searchById()) --- app/models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/Entry.php') diff --git a/app/models/Entry.php b/app/models/Entry.php index ef1c567e8..f49e74239 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -368,7 +368,7 @@ class EntryDAO extends Model_pdo { $stm->execute ($values); $res = $stm->fetchAll (PDO::FETCH_ASSOC); - $entry = HelperEntry::daoToEntry ($res); + list ($entry, $next) = HelperEntry::daoToEntry ($res); if (isset ($entry[0])) { return $entry[0]; -- cgit v1.2.3