2013-01-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_agents.php: Changed constraint in agent creation about the interval (now only greater than zero). Merged from branches. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6e25b117e7
commit
7d756bf1a8
|
@ -1,3 +1,10 @@
|
||||||
|
2013-01-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php: Changed constraint in agent creation
|
||||||
|
about the interval (now only greater than zero).
|
||||||
|
|
||||||
|
Merged from branches.
|
||||||
|
|
||||||
2013-01-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2013-01-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_prediction.php: Fixed bug
|
* godmode/agentes/module_manager_editor_prediction.php: Fixed bug
|
||||||
|
|
|
@ -70,7 +70,9 @@ function agents_create_agent ($name, $id_group, $interval, $ip_address, $values
|
||||||
return false;
|
return false;
|
||||||
if (empty ($ip_address))
|
if (empty ($ip_address))
|
||||||
return false;
|
return false;
|
||||||
$interval = safe_int ($interval,1, SECONDS_5MINUTES);
|
// Check interval greater than zero
|
||||||
|
if ($interval < 0)
|
||||||
|
$interval = false;
|
||||||
if (empty ($interval))
|
if (empty ($interval))
|
||||||
return false;
|
return false;
|
||||||
if (! is_array ($values))
|
if (! is_array ($values))
|
||||||
|
|
Loading…
Reference in New Issue