From 2ae9bb9cee91c76070a5da80a9facb4aa6768511 Mon Sep 17 00:00:00 2001 From: Alexandre MOTTIER Date: Sat, 15 Oct 2022 12:55:02 +0200 Subject: [PATCH] v1.2.1 --- class/class.functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/class.functions.php b/class/class.functions.php index 28b7938..43c923a 100644 --- a/class/class.functions.php +++ b/class/class.functions.php @@ -3,7 +3,7 @@ //require('config.php'); function soldertt($table, $rttparan, $conn){ - $resultrtt = mysqli_query($conn, "SELECT SUM(nbjours) AS decomptertt FROM $table WHERE type='RTT' AND datedebut LIKE "); + $resultrtt = mysqli_query($conn, "SELECT SUM(nbjours) AS decomptertt FROM $table WHERE type='RTT'"); $rowrtt = mysqli_fetch_assoc($resultrtt); $sumrtt = $rowrtt['decomptertt']; $rtt = ($rttparan - $sumrtt);