From f3304fbeb18df489ebcd265d3320b05de0d4e8ee Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 18 Dec 2019 22:11:05 +0100 Subject: [PATCH] resolu: bug lorsque adresse courriel est vide --- nconnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nconnector.php b/nconnector.php index b229ebd..0d01b66 100755 --- a/nconnector.php +++ b/nconnector.php @@ -94,7 +94,7 @@ while ($user = $doldb->result->fetch_assoc()) $data["displayname"]["value"] = addslashes(concat(utf8_encode($user["firstname"]), utf8_encode($user["lastname"]))); $address = concat(utf8_encode($user['address']), $user["zip"]); $data["address"]["value"] = (concat ($address, utf8_encode($user["town"]))); - $data["email"]["value"] = $user["email"]; + $data["email"]["value"] = "'" . $user["email"] . "'"; print_r($data); if ( ($account_data = json_encode($data)) == false ) {