Skip to content

Commit 4408d6b

Browse files
committed
Releasing 1.1.3
2 parents 242ba3f + f95faed commit 4408d6b

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
@@ -304,7 +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());
307+
else if (is_a($value, 'TgUtils\\SelfJsonEncoder')) $rc = $this->quote($value->json_encode());
308308
else $rc = $this->quote(json_encode($value));
309309
} else if (is_array($value)) {
310310
$rc = $this->quote(json_encode($value));

0 commit comments

Comments
 (0)