Update functions.php

This commit is contained in:
José González 2022-01-14 09:08:58 +00:00
parent b34b89f514
commit ea67ffddb4
1 changed files with 4 additions and 1 deletions

View File

@ -4185,8 +4185,11 @@ function generator_chart_to_pdf(
) {
$width_img = 650;
$height_img = ($params['height'] + 50);
} else if ($type_graph_pdf === 'hbar') {
$width_img = ($params['width'] ?? 550);
$height_img = $params['height'];
} else {
$width_img = $params['width'];
$width_img = 550;
$height_img = $params['height'];
if ((int) $params['landscape'] === 1) {