From 42540843115ef394e1c2005ed1dd418c6d10621f Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Mon, 31 Mar 2025 15:45:13 -0600 Subject: [PATCH] =?UTF-8?q?Corrige=20uso=20de=20funci=C3=B3n=20para=20mane?= =?UTF-8?q?jar=20valores=20nulos=20en=20la=20comparaci=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action/action_auditoria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/action_auditoria.php b/action/action_auditoria.php index 79b11a4..8c7c7fe 100644 --- a/action/action_auditoria.php +++ b/action/action_auditoria.php @@ -115,7 +115,7 @@ try { LEFT JOIN usuario ON usuario.usuario_id = REGISTRO.supervisor_id JOIN estado_supervisor ON estado_supervisor.estado_supervisor_id = COALESCE(REGISTRO.estado_supervisor_id, 0) WHERE horario.horario_id IN ($HorariosID) - AND (FECHAS.fecha + horario.horario_hora) < LEAST(horario.horario_fecha_fin, NOW()) + AND (FECHAS.fecha + horario.horario_hora) < COALESCE(horario.horario_fecha_fin, NOW()) ORDER BY fechas.fecha, horario_hora, REGISTRO.estado_supervisor_id", $fechas );