From a78690ff6f3877bd2d5ab335d6ccf11c3bcbff7a Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 22 Dec 2016 12:06:52 +0100 Subject: [PATCH] Fixed problems with cron interval qhen type of module is a data server. Ticket: #4242 (cherry picked from commit 53c255893900d65abc04733f197211a5dc3a9f0c) --- pandora_console/godmode/agentes/configurar_agente.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 4fa04f8dda..2542bd5242 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1009,6 +1009,9 @@ if ($update_module || $create_module) { $month = get_parameter('month'); $wday = get_parameter('wday'); $cron_interval = "$minute $hour $mday $month $wday"; + if (!cron_check_syntax($cron)) { + $cron_interval = ''; + } if ($prediction_module != MODULE_PREDICTION_SYNTHETIC) { unset($serialize_ops);