|
|
@ -25,12 +25,12 @@ $out = [];
|
|
|
|
foreach ($results as $r) {
|
|
|
|
foreach ($results as $r) {
|
|
|
|
$out[] = [
|
|
|
|
$out[] = [
|
|
|
|
"fingerprint" => $r["fingerprint"],
|
|
|
|
"fingerprint" => $r["fingerprint"],
|
|
|
|
"name" => $r["name"],
|
|
|
|
"name" => empty($r["name"]) ? null : $r["name"],
|
|
|
|
"email" => $r["email"],
|
|
|
|
"email" => empty($r["email"]) ? null : $r["email"],
|
|
|
|
"location" => $r["location"],
|
|
|
|
"location" => empty($r["location"]) ? null : $r["location"],
|
|
|
|
"commissionexpires" => (is_null($r["commissionexpires"]) ? null : strtotime($r["commissionexpires"])),
|
|
|
|
"commissionexpires" => (is_null($r["commissionexpires"]) ? null : strtotime($r["commissionexpires"])),
|
|
|
|
"idnumber" => $r["idnumber"],
|
|
|
|
"idnumber" => empty($r["idnumber"]) ? null : $r["idnumber"],
|
|
|
|
"state" => $r["state"],
|
|
|
|
"state" => empty($r["state"]) ? null : $r["state"],
|
|
|
|
"publickey" => $r["publickey"]
|
|
|
|
"publickey" => $r["publickey"]
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|