Skip to content

Commit f895a77

Browse files
committed
#22 - Fix leading zero issue with strings
1 parent bb99ea6 commit f895a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TgDatabase/Database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public function prepareValue($value) {
321321
else $rc = $this->quote(json_encode($value));
322322
} else if (is_array($value)) {
323323
$rc = $this->quote(json_encode($value));
324-
} else if (is_numeric($value)) {
324+
} else if (is_numeric($value) && !is_string($value)) {
325325
// Nothing to do
326326
} else {
327327
$rc = $this->quote($value);

0 commit comments

Comments
 (0)