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:
zarzuelo 2011-07-21 09:24:41 +00:00
parent 66180d5a9c
commit 13e3a2163d
4 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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));

View File

@ -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;