Skip to content

Commit

Permalink
🐛 Update AOICommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Nov 21, 2022
1 parent edf2473 commit 5a2a473
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command/AOICommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$data = $response->toArray();

$io->success(sprintf('OSMCha Area of Interest identifier for "%s" is "%s" (%s).', $name, $data['id'], $data['properties']['filters']['date__gte']));
if (null !== $date) {
$io->success(sprintf('OSMCha Area of Interest identifier for "%s" is "%s" (%s).', $name, $data['id'], $data['properties']['filters']['date__gte']));
} else {
$io->success(sprintf('OSMCha Area of Interest identifier for "%s" is "%s".', $name, $data['id']));
}

return Command::SUCCESS;
} catch (ClientException $e) {
Expand Down

0 comments on commit 5a2a473

Please sign in to comment.