Skip to content

Commit

Permalink
Fix spelling mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Mar 5, 2024
1 parent aebaf0e commit 93a503c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/discoveries_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2165,7 +2165,7 @@ function discovery_check_finished(int $id)
$discoveryLogModel->create($log);
// If we are a collector and the discovery is an instant - delete it locally
$instance = & get_instance();
if (!empty($instance->config->cervers) and $instance->config->servers->type === 'collector' and strpos($result[0]->name, 'Instant Discovery') !== false) {
if (!empty($instance->config->servers) and $instance->config->servers->type === 'collector' and strpos($result[0]->name, 'Instant Discovery') !== false) {
$sql = "DELETE FROM `discoveries` WHERE `id` = ?";
$db->query($sql, [$id]);
log_message('info', 'Deleting discovery named: ' . $result[0]->name);
Expand Down

0 comments on commit 93a503c

Please sign in to comment.