2011-07-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_graph.php: Set default values to width and height parameters in purge graph. * godmode/setup/os.list.php godmode/users/profile_list.php: Fixed typica bugs of foreach with no array variable git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4609 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
66180d5a9c
commit
13e3a2163d
|
@ -1,3 +1,12 @@
|
|||
2011-07-21 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_graph.php: Set default values to width and height
|
||||
parameters in purge graph.
|
||||
|
||||
* godmode/setup/os.list.php
|
||||
godmode/users/profile_list.php: Fixed typica bugs of foreach with
|
||||
no array variable
|
||||
|
||||
2011-07-21 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* DEBIAN/control: Removed php5-zlib (zlib comes with the default PHP
|
||||
|
|
|
@ -38,6 +38,9 @@ $table->size[0] = '20px';
|
|||
$table->size[4] = '20px';
|
||||
|
||||
$osList = db_get_all_rows_in_table('tconfig_os');
|
||||
if($osList === false) {
|
||||
$osList = array();
|
||||
}
|
||||
|
||||
$table->data = array();
|
||||
foreach ($osList as $os) {
|
||||
|
|
|
@ -75,6 +75,9 @@ $table->align = array_fill (1, 11, "center");
|
|||
$table->size = array_fill (1, 10, 40);
|
||||
|
||||
$profiles = db_get_all_rows_in_table ("tperfil");
|
||||
if($profiles === false) {
|
||||
$profiles = array();
|
||||
}
|
||||
|
||||
$img = html_print_image ("images/ok.png", true, array ("border" => 0));
|
||||
|
||||
|
|
|
@ -825,7 +825,7 @@ function graph_sla_slicebar ($id, $period, $sla_min, $sla_max, $date, $daysWeek
|
|||
* @param integer width pie graph width
|
||||
* @param integer height pie graph height
|
||||
*/
|
||||
function grafico_db_agentes_purge ($id_agent, $width, $height) {
|
||||
function grafico_db_agentes_purge ($id_agent, $width = 380, $height = 300) {
|
||||
global $config;
|
||||
global $graphic_type;
|
||||
|
||||
|
|
Loading…
Reference in New Issue