From 316dafdc951ae4bedc7aa84e7a8853469e2a74e6 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 19 May 2006 15:26:22 +0000 Subject: [PATCH] bugfix --- htdocs/fichinter/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index a2060c4b89f..e82f4f3825b 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -138,7 +138,7 @@ if ($_GET["action"] == 'create') $numpr = "FI".strftime("%y%m%d", time()); $sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."propal"; - $sql.= " WHERE ref like ".$numpr."%"; + $sql.= " WHERE ref like '${numpr}%'"; $resql=$db->query($sql); if ($resql)