diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2d639990e4..664d9ff705 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-08-24 Sergio Martin + + * godmode/reporting/visual_console_builder.php: Fixed + the size of the icons when choose 0 pixels into + the wizard + 2010-08-23 Sergio Martin * operation/agentes/networkmap.php: Add the feature of diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index 30997bf7d9..1b230fb4cd 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -158,10 +158,10 @@ switch ($activeTab) { $width = (int) get_parameter ("width", 0); $height = (int) get_parameter ("height", 0); - if($width == 0 && $height == 0) { - $sizeBackground = getimagesize($config['homedir'] . '/images/console/background/' . $background); - $width = $sizeBackground[0]; - $height = $sizeBackground[1]; + if($width == 0 || $height == 0) { + $sizeImage = getimagesize($config['homedir'] . '/images/console/icons/' . $image . '.png'); + $width = $sizeImage[0]; + $height = $sizeImage[1]; } $message = '';