2011-08-16 Miguel de Dios <miguel.dedios@artica.es>

* godmode/db/db_sanity.php: fixes the notice php messages and warnings php
	messages. And fixed the uninitialised modules erasing.
	
	Fixes: #3392431



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4742 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-08-16 14:25:04 +00:00
parent ab29a204c8
commit b8dfb6dd5f
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2011-08-16 Miguel de Dios <miguel.dedios@artica.es>
* godmode/db/db_sanity.php: fixes the notice php messages and warnings php
messages. And fixed the uninitialised modules erasing.
Fixes: #3392431
2011-08-16 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_monitores.php: erased the notice php messages

View File

@ -40,7 +40,7 @@ if ($sanity == 1) {
}
foreach ($rows as $row) {
$id_agente_modulo = $row[0];
$id_agente_modulo = $row['id_agente_modulo'];
$id_agente = $row["id_agente"];
// check if exist in tagente_estado and create if not
$sql = "SELECT COUNT(*) FROM tagente_estado
@ -68,7 +68,7 @@ if ($sanity == 1) {
if ($rows !== false) {
$row = reset($rows);
$count = $rows['count'];
$count = $row['count'];
if ($count == 0) {
echo "Deleting non-existing module $id_agente_modulo in state table <br>";
@ -87,9 +87,9 @@ elseif ($sanity == 2) {
}
foreach ($rows as $row) {
echo "Deleting non init module $id_agente_modulo <br>";
echo "Deleting non init module " . $row['id_agente_modulo'] ." <br>";
db_process_sql_delete('tagente_estado', array('id_agente_modulo' => $row['id_agente_modulo']));
modules_delete_agent_module($row['id_agente_modulo']);
}
echo "Deleting bad module (id 0)<br>";