From 0d9b2974b4851e3960dc11b48c59c4ef8c2d55b6 Mon Sep 17 00:00:00 2001
From: Ghislain Loas <ghislo@sandbox.pergame.net>
Date: Thu, 14 Jan 2016 10:30:49 +0100
Subject: [PATCH] hotline #36284 fix sql error on users integration

---
 VERSIONS_HOTLINE/36284                    | 1 +
 cosmogramme/php/classes/classe_abonne.php | 2 +-
 library/Class/Users.php                   | 3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 VERSIONS_HOTLINE/36284

diff --git a/VERSIONS_HOTLINE/36284 b/VERSIONS_HOTLINE/36284
new file mode 100644
index 00000000000..78ec941b633
--- /dev/null
+++ b/VERSIONS_HOTLINE/36284
@@ -0,0 +1 @@
+ - ticket #36284 : Correction de l'integration des fichiers d'abonnés.
diff --git a/cosmogramme/php/classes/classe_abonne.php b/cosmogramme/php/classes/classe_abonne.php
index 602b0cf2f4e..bbd292c9ee5 100644
--- a/cosmogramme/php/classes/classe_abonne.php
+++ b/cosmogramme/php/classes/classe_abonne.php
@@ -140,7 +140,7 @@ class abonne
 		if (isset($enreg["ORDREABON"]) && ((int)$enreg["ORDREABON"] < 1 ))
 			$enreg["ORDREABON"] = 1;
 
-		return $enreg;
+		return array_filter($enreg);
 	}
 
 
diff --git a/library/Class/Users.php b/library/Class/Users.php
index b09aa436b3d..9e80dece97b 100644
--- a/library/Class/Users.php
+++ b/library/Class/Users.php
@@ -343,7 +343,8 @@ class Class_Users extends Storm_Model_Abstract {
                                   'is_contact_mail' => 0,
                                   'ordreabon' => '',
                                   'id_panier_courant' => 0,
-                                  'settings' => ''];
+                                  'settings' => '',
+                                  'statut' => 0];
 
   public static function currentUserId() {
     if (!$user = self::getLoader()->getIdentity())
-- 
GitLab