Răsfoiți Sursa

Correction bug lors de la recherche d'un article (EntryDAO->searchById())

Marien Fressinaud 13 ani în urmă
părinte
comite
22e9fb02f8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app/models/Entry.php

+ 1 - 1
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];