Skip to content

Commit 242ba3f

Browse files
committed
Releasing 1.1.2
2 parents 129ccf5 + 5f0f4d5 commit 242ba3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TgDatabase/Database.php

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ public function prepareValue($value) {
304304
$rc = $value;
305305
if (is_object($value)) {
306306
if (get_class($value) == 'TgUtils\\Date') $rc = $this->quote($value->toMysql(true));
307+
else if (is_a('TgUtils\\SelfJsonEncoder')) $rc = $this->quote($value->json_encode());
307308
else $rc = $this->quote(json_encode($value));
308309
} else if (is_array($value)) {
309310
$rc = $this->quote(json_encode($value));

0 commit comments

Comments
 (0)