1
0

resolu: bug lorsque adresse courriel est vide

This commit is contained in:
Daniel Tartavel 2019-12-18 22:11:05 +01:00
parent b7b89160ef
commit f3304fbeb1

View File

@ -94,7 +94,7 @@ while ($user = $doldb->result->fetch_assoc())
$data["displayname"]["value"] = addslashes(concat(utf8_encode($user["firstname"]), utf8_encode($user["lastname"]))); $data["displayname"]["value"] = addslashes(concat(utf8_encode($user["firstname"]), utf8_encode($user["lastname"])));
$address = concat(utf8_encode($user['address']), $user["zip"]); $address = concat(utf8_encode($user['address']), $user["zip"]);
$data["address"]["value"] = (concat ($address, utf8_encode($user["town"]))); $data["address"]["value"] = (concat ($address, utf8_encode($user["town"])));
$data["email"]["value"] = $user["email"]; $data["email"]["value"] = "'" . $user["email"] . "'";
print_r($data); print_r($data);
if ( ($account_data = json_encode($data)) == false ) if ( ($account_data = json_encode($data)) == false )
{ {