diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php
index 5a1d482e1d..d462929cff 100644
--- a/pandora_console/include/functions_graph.php
+++ b/pandora_console/include/functions_graph.php
@@ -2441,10 +2441,14 @@ function graphic_agentaccess(
} else {
$options['generals']['pdf']['width'] = 350;
$options['generals']['pdf']['height'] = 125;
+ if (!empty($data_array)) {
+ $imgbase64 = '';
+ } else {
+ $imgbase64 .= vbar_graph($data_array, $options, 2);
+ }
- $imgbase64 = '';
return $imgbase64;
}
}