Browse Source

fix last_seen when never seen for api

Signed-off-by: r4sas <r4sas@i2pmail.org>
master
R4SAS 3 years ago
parent
commit
300b3b04a5
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      views/api.php

2
views/api.php

@ -38,7 +38,7 @@ switch ($command) {
$data = array_merge($data, ["status" => "error", "message" => "Not found"]); $data = array_merge($data, ["status" => "error", "message" => "Not found"]);
break; break;
} else { } else {
if ($row["last_seen"] == "0000-00-00 00:00:00") $row["last_seen"] = "Never"; if (!$row["last_seen"]) $row["last_seen"] = "Never";
$row["base32"] .= ".b32.i2p"; $row["base32"] .= ".b32.i2p";
$data = array_merge($data, $row); $data = array_merge($data, $row);
} }

Loading…
Cancel
Save