From d0139de3e5903f7a99104ef451e130b3bf17be0a Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 15 Feb 2017 11:48:45 +0100 Subject: [PATCH] Fix Lien Code Pays --- library/Metier/Liens/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Metier/Liens/Base.php b/library/Metier/Liens/Base.php index a7952610..0ca90f7c 100755 --- a/library/Metier/Liens/Base.php +++ b/library/Metier/Liens/Base.php @@ -537,7 +537,7 @@ class Metier_Liens_Base $stmt->execute(); if ($stmt->rowCount() > 0) { $data = array(); - foreach ($rows as $item) { + while($item = $stmt->fetch(PDO::FETCH_OBJ)) { $data[$item->codPays3] = $item->libPays; } return $data;