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:
parent
0c1208a4c1
commit
b72faa3776
|
@ -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,
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue