Mercurial > hg > batmud > maputils
changeset 2590:f464c7064b81
Minor cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 11 Feb 2024 17:26:44 +0200 |
parents | 2a535f601677 |
children | f207279a5f89 |
files | www/common.inc.php |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/www/common.inc.php Sun Feb 11 16:57:35 2024 +0200 +++ b/www/common.inc.php Sun Feb 11 17:26:44 2024 +0200 @@ -376,6 +376,7 @@ // Get timestamp $stamp = $record[6]; + $added = -1; if (strlen($stamp) > 0) { if (sscanf($stamp, "%02d.%02d.%04d", $aday, $amonth, $ayear) == 3) @@ -386,11 +387,8 @@ else { mpError("Location <b>".$record[4]."</b> has invalid timestamp '".$record[6]."'"); - $added = -1; } } - else - $added = -1; // Add location to array of locations $locations[$id] = [