From: Brion Vibber Date: Tue, 12 Oct 2010 02:17:21 +0000 (-0700) Subject: tweak for strings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cb42c8e45b9adf33872a7c5b116795c768b3b49;p=quix0rs-gnu-social.git tweak for strings --- diff --git a/lib/schema.php b/lib/schema.php index 6c6a3e56f0..4eafb4df24 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -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) . '"'; + } } /**