]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
tweak for strings
authorBrion Vibber <brion@pobox.com>
Tue, 12 Oct 2010 02:17:21 +0000 (19:17 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 12 Oct 2010 02:17:21 +0000 (19:17 -0700)
lib/schema.php

index 6c6a3e56f0d894e858fedd92993679bea010cc75..4eafb4df2415dc4c6880c70363d8b27b391116e1 100644 (file)
@@ -600,7 +600,11 @@ class Schema
 
     function quoteValue($val)
     {
-        return $this->conn->escapeSimple($val); // ??
+        if (is_int($val) || is_float($val) || is_double($val)) {
+            return strval($val);
+        } else {
+            return '"' . $this->conn->escapeSimple($val) . '"';
+        }
     }
 
     /**