From b446ecd09e8449c5ff1a80b78b05798aa49e8f62 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 6 Nov 2016 16:50:29 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20`input/phone`=20sur=20le=20mo?= =?UTF-8?q?d=C3=A8le=20de=20`input/facebook`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] gestion des relations --- build/api/module/input.php | 3 ++- build/lightdb/storage/uniqid | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/api/module/input.php b/build/api/module/input.php index 74fea87..a0be1ba 100644 --- a/build/api/module/input.php +++ b/build/api/module/input.php @@ -315,7 +315,8 @@ /* (1) On récupére les ids des contacts */ $cIdList = []; foreach($file['contacts'] as $c=>$contact){ - $id = $contact['id'] - $offset; + $id = (int) $c; + if( !in_array($id, $cIdList) ) $cIdList[$id] = null; } diff --git a/build/lightdb/storage/uniqid b/build/lightdb/storage/uniqid index bdc194b..b9a6f7f 100644 --- a/build/lightdb/storage/uniqid +++ b/build/lightdb/storage/uniqid @@ -1 +1 @@ -3881 \ No newline at end of file +3901 \ No newline at end of file