From e7b2cf21ef43b2bb351a25b5f8b431939ca46c48 Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Mon, 22 May 2006 21:28:44 +0000 Subject: [PATCH] =?UTF-8?q?Mettre=20absolument=20des=20apostrophes=20autou?= =?UTF-8?q?r=20des=20flottants=20sinon=20Mysql=20arrondit=20lorsque=20c'es?= =?UTF-8?q?t=20affect=C3=A9=20=C3=A0=20une=20chaine=20=3D=3D=3D>=20version?= =?UTF-8?q?=5Finstall=C3=A9e=201.911=20devient=201.91=20et=20on=20boucle?= =?UTF-8?q?=20=C3=A0=20la=20mise=20=C3=A0=20jour=20....?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 1b3dbb07ab..ca5312319a 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -261,7 +261,7 @@ function spip_query($query) { // a demenager dans base/abstract_sql a terme function spip_abstract_quote($arg_sql) { - return (is_numeric($arg_sql)) ? $arg_sql : ("'" . addslashes($arg_sql) . "'"); + return (is_int($arg_sql)) ? $arg_sql : ("'" . addslashes($arg_sql) . "'"); } // Renvoie le _GET ou le _POST emis par l'utilisateur -- GitLab