2009-12-3 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/estado_ultimopaquete.php: fix the column of data with
	a empty module string.
	Fixes: 2881181



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2154 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-12-03 17:57:18 +00:00
parent b90b03d72c
commit bea54f2b89
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-12-3 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_ultimopaquete.php: fix the column of data with
a empty module string.
Fixes: 2881181
2009-12-3 Miguel de Dios <miguel.dedios@artica.es> 2009-12-3 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_common.php: clean source code. * godmode/agentes/module_manager_editor_common.php: clean source code.

View File

@ -153,8 +153,11 @@ foreach ($modules as $module) {
if (is_numeric($module["datos"])){ if (is_numeric($module["datos"])){
echo "<td class=".$tdcolor.">"; echo "<td class=".$tdcolor.">";
echo format_for_graph($module["datos"] ); echo format_for_graph($module["datos"] );
} else { }
echo "<td class='".$tdcolor."f9' colspan=2 title='".safe_output($module["datos"])."'>"; else {
if (strlen($module["datos"]) > 0 ) $colspan = 2;
else $colspan= 1;
echo "<td class='".$tdcolor."f9' colspan='" . $colspan . "' title='".safe_output($module["datos"])."'>";
echo substr(safe_output($module["datos"]),0,42); echo substr(safe_output($module["datos"]),0,42);
} }