From 18e0106a9c07f31b7b878d85d1a8b34996f42e2e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 31 Aug 2003 22:34:27 +0000 Subject: [PATCH] Correction erreur requete sql --- htdocs/includes/modules/propale/mod_propale_jade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/modules/propale/mod_propale_jade.php b/htdocs/includes/modules/propale/mod_propale_jade.php index ca55dc0f45a..236d45174c9 100644 --- a/htdocs/includes/modules/propale/mod_propale_jade.php +++ b/htdocs/includes/modules/propale/mod_propale_jade.php @@ -25,7 +25,7 @@ function propale_get_num($objsoc=0) { global $db; - $sql = "SELECT count(*) FROM llx_propale"; + $sql = "SELECT count(*) FROM llx_propal"; if ( $db->query($sql) ) { @@ -36,7 +36,7 @@ function propale_get_num($objsoc=0) $y = strftime("%y",time()); - return "PROP" . substr("0000".$num, strlen("0000".$num)-5,5); + return "PROP" . $num; }