fixed error

This commit is contained in:
alejandro.campos@artica.es 2023-06-28 12:19:05 +02:00
parent 2a6a53ccd5
commit 2366a89850
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ $total_components = network_components_get_network_components(
'COUNT(*) AS total'
);
$total_components = $total_components[0]['total'];
$offset_delete = ($offset >= ($total_components - 1)) ? ($offset - $config['block_size']) : $offset;
$offset_delete = ($offset > 0 && $offset >= ($total_components - 1)) ? ($offset - $config['block_size']) : $offset;
$filter['offset'] = (int) get_parameter('offset');
$filter['limit'] = (int) $config['block_size'];
$components = network_components_get_network_components(