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:
juanmanuelr 2013-01-09 12:38:49 +00:00
parent 6e25b117e7
commit 7d756bf1a8
2 changed files with 10 additions and 1 deletions

View File

@ -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>
* godmode/agentes/module_manager_editor_prediction.php: Fixed bug

View File

@ -70,7 +70,9 @@ function agents_create_agent ($name, $id_group, $interval, $ip_address, $values
return false;
if (empty ($ip_address))
return false;
$interval = safe_int ($interval,1, SECONDS_5MINUTES);
// Check interval greater than zero
if ($interval < 0)
$interval = false;
if (empty ($interval))
return false;
if (! is_array ($values))