Fixed a bug in include/functions_agents.php (create_agent) where the call to safe_int was incorrect
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
772c8f7d8e
commit
9392ff79fe
|
@ -1,3 +1,7 @@
|
|||
2009-07-16 Pablo de la Concepcipón <pablo.concepcion@artica.es>
|
||||
|
||||
* include/functions_agents.php: fixed repeated empty test and safe_int call
|
||||
|
||||
2009-07-16 Jorge Gonzalez <jorgegonz@atica.es>
|
||||
|
||||
* godmode/servers/manage_recontask_form.php: fixed wrong group
|
||||
|
|
|
@ -28,11 +28,11 @@
|
|||
function create_agent ($name, $id_group, $interval, $ip_address, $values = false) {
|
||||
if (empty ($name))
|
||||
return false;
|
||||
if (empty ($name))
|
||||
if (empty ($id_group))
|
||||
return false;
|
||||
if (empty ($ip_address))
|
||||
return false;
|
||||
$interval = safe_int ($interval, 300);
|
||||
$interval = safe_int ($interval,1, 300);
|
||||
if (empty ($interval))
|
||||
return false;
|
||||
if (! is_array ($values))
|
||||
|
|
Loading…
Reference in New Issue