2008-10-20 Esteban Sanchez <estebans@artica.es>

* operation/agentes/estado_grupo.php: Fixed a notice error when the 
        query returns nothing.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1171 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2008-10-20 09:07:32 +00:00
parent 89c0fc90c0
commit d62aed5fa8
2 changed files with 29 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-10-20 Esteban Sanchez <estebans@artica.es>
* operation/agentes/estado_grupo.php: Fixed a notice error when the
query returns nothing.
2008-10-20 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/cs.po, include/languages/pt_BR.po,
@ -100,6 +105,26 @@
* include/config_process.php: Added ENTERPRISE_DIR constant.
* extensions/hello.php: Use extension better than plugin which is
already used in other places.
* godmode/reporting/map_builder.php: Use process_sql() to make SQL
queries.
* include/functions_db.php: Fixed some functions documentation. Added
order_field to get_db_all_fields_in_table(). Style correction.
* include/functions_extensions.php: Support to load enterprise
extensions.
* include/functions_reporting.php: Fixed general_stats() to returns
stats also with a field name.
* include/javascript/jquery.ui.core.js,
include/javascript/jquery.ui.draggable.js,
include/javascript/jquery.ui.droppable.js: Updated to latest version
of jQuery UI.
2008-10-14 Esteban Sanchez <estebans@artica.es>
* operation/reporting/reporting_viewer.php,

View File

@ -79,8 +79,10 @@ foreach ($groups as $id_group => $group_name) {
AND tagente_modulo.disabled = 0
AND tagente_estado.utimestamp != 0",
$id_group);
$result = get_db_all_rows_sql ($sql);
foreach ($result as $module) {
$modules = get_db_all_rows_sql ($sql);
if ($modules === false)
$modules = array ();
foreach ($modules as $module) {
//if ($config["show_unknown"] > 0) {
//this needs to be filled out somehow, but this was a serious bug. If that config var is set, it would short circuit both ok++ and bad++ returning empty for everything
//}