From c490a7305d7062d2dce9a1df3a1eab821903549d Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Thu, 3 Oct 2002 10:52:50 +0000
Subject: [PATCH] =?UTF-8?q?ptit=20trou=20s=C3=A9cu=20(Fabrice=20Gangler)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 inc-calcul-squel.php3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc-calcul-squel.php3 b/inc-calcul-squel.php3
index 38d753fe45..40ed740723 100644
--- a/inc-calcul-squel.php3
+++ b/inc-calcul-squel.php3
@@ -268,7 +268,7 @@ function parser_boucle($texte, $id_parent) {
 					}
 					else if (ereg('^debut([-_a-zA-Z0-9]+),([0-9]*)$', $param, $match)) {
 						$debut_lim = "debut".$match[1];
-						$req_limit = "0\$GLOBALS[$debut_lim],".$match[2];
+						$req_limit = '".intval($GLOBALS[\''.$debut_lim.'\']).",'.$match[2];
 					}
 					else if (ereg('^([0-9]+)/([0-9]+)$', $param, $match)) {
 						$partie = $match[1];
-- 
GitLab