diff --git a/pandora_console/include/api.php b/pandora_console/include/api.php index b32f120d36..bd4b11ccc0 100644 --- a/pandora_console/include/api.php +++ b/pandora_console/include/api.php @@ -105,7 +105,7 @@ if ($correctLogin) { } } else { $function_name = 'api_'.$op.'_'.$op2; - $id = 1; + if ($op == 'set' && $id) { switch ($op2) { case 'update_agent':