summaryrefslogtreecommitdiff
path: root/system/libraries/Database.php
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-02-27 14:03:01 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-02-27 14:03:01 +0000
commita58aa6e97b0e44adf7a878db6e276b081e202192 (patch)
treececc68b1222cb283a021478b822952c468d64393 /system/libraries/Database.php
parent10e36fcf1b5acf07c5cc128105af03fb09aac89e (diff)
parentd9707ae749df2770370dc4eeeeaddda28f092d4d (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'system/libraries/Database.php')
-rw-r--r--system/libraries/Database.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/libraries/Database.php b/system/libraries/Database.php
index 98e33fa0..253bb152 100644
--- a/system/libraries/Database.php
+++ b/system/libraries/Database.php
@@ -420,6 +420,11 @@ abstract class Database_Core {
{
return (string) $value;
}
+ elseif (is_float($value))
+ {
+ // Convert to non-locale aware float to prevent possible commas
+ return sprintf('%F', $value);
+ }
return '\''.$this->escape($value).'\'';
}