bug and media fixes

This commit is contained in:
Dennis Eichhorn 2021-10-29 14:49:54 +02:00
parent 1336578304
commit 924540c556
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function ip2int(string $ip) : float
}
while (($data = \fgetcsv($fh, 150, ",")) !== false) {
\fputcsv($fo, [ip2int($data[0]), ip2int($data[1]), $data[4]]);
\fputcsv($fo, [\ip2int($data[0]), \ip2int($data[1]), $data[4]]);
}
\fclose($fo);

View File

@ -25,7 +25,7 @@ $destination = ($key = \array_search('-d', $argv)) === false || $key === \count(
$modulePath = ($key = \array_search('-m', $argv)) === false || $key === \count($argv) - 1 ? null : \trim($argv[$key + 1], '" ');
if (!isset($destination) || !isset($modulePath)) {
printUsage();
\printUsage();
return;
}