From 1c14fa4bcba18ce9f419042812fa67ae90a0eea4 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 26 Oct 2020 17:12:55 +0100 Subject: [PATCH] Added -force- option to Agent::lastStatus --- pandora_console/include/lib/Agent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/lib/Agent.php b/pandora_console/include/lib/Agent.php index 16e1c7c5a0..cfba92f526 100644 --- a/pandora_console/include/lib/Agent.php +++ b/pandora_console/include/lib/Agent.php @@ -104,11 +104,11 @@ class Agent extends Entity /** * Return last value (status) of the agent. * - * @param boolean $recalc Forcre recalculation. + * @param boolean $force Force recalculation. * * @return integer Status of the agent. */ - public function lastStatus($force=false) + public function lastStatus(bool $force=false) { if ($force === true) { return \agents_get_status(