From 62f069096b63c3ae44cd9a34ecae0c68d4c35d3f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 14 Apr 2015 01:26:05 +0200 Subject: [PATCH] float --- lib/php/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/db.php b/lib/php/db.php index 67cb87b0..dea425d5 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -567,7 +567,7 @@ class table { if (!$spec['extra']) { if ($escape) $row[$f] = htmlspecialchars($row[$f]); } - if ($this->db->type == 'sqlite' and preg_match('/float\((?:\d+,)?(\d+)\)/',$spec['type'],$m)) { + if ($this->db->type == 'sqlite' and preg_match('/^float\((?:\d+,)?(\d+)\)/',$spec['type'],$m)) { $row[$f] = sprintf('%.'.$m[1].'f',$row[$f]); } /* only if in latin1 -- 2.47.3