2010-04-28 Sergio Martin <sergio.martin@artica.es>

* include/functions_visual_map.php: fixed the
          error of divided by zero and now the widget
          display an error message. Bug #2992370



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2623 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-04-28 11:03:07 +00:00
parent 0c1208a4c1
commit b72faa3776
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-04-28 Sergio Martin <sergio.martin@artica.es>
* include/functions_visual_map.php: fixed the
error of divided by zero and now the widget
display an error message. Bug #2992370
2010-04-28 Sancho Lerena <slerena@artica.es>
* include/pChart/pData.class,

View File

@ -330,6 +330,11 @@ function print_pandora_visual_map ($id_layout, $show_links = true, $draw_lines =
global $config;
$layout = get_db_row ('tlayout', 'id', $id_layout);
if(($layout["width"] == 0)){
print_error_message (__('The map has not elements'));
$layout["width"] = 1;
}
$resizedMap = false;
$proportion = 1;
if (!is_null($width)) {