From 6a488b8e08cd7f2470a469234dd402b21ec36892 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Tue, 28 Sep 2010 16:53:38 +0000 Subject: [PATCH] Fix: Standard SQL --- htdocs/includes/modules/societe/mod_codeclient_monkey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/modules/societe/mod_codeclient_monkey.php b/htdocs/includes/modules/societe/mod_codeclient_monkey.php index f305f9fd5be..12bea62c76c 100644 --- a/htdocs/includes/modules/societe/mod_codeclient_monkey.php +++ b/htdocs/includes/modules/societe/mod_codeclient_monkey.php @@ -107,7 +107,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode // D'abord on recupere la valeur max (reponse immediate car champ indexe) $posindice=8; - $sql = "SELECT MAX(SUBSTRING(".$field.",".$posindice.")) as max"; + $sql = "SELECT MAX(SUBSTRING(".$field." FROM ".$posindice.")) as max"; // This is standard SQL $sql.= " FROM ".MAIN_DB_PREFIX."societe"; $sql.= " WHERE ".$field." LIKE '".$prefix."____-%'"; -- GitLab