We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 242ba3f + f95faed commit 4408d6bCopy full SHA for 4408d6b
src/TgDatabase/Database.php
@@ -304,7 +304,7 @@ public function prepareValue($value) {
304
$rc = $value;
305
if (is_object($value)) {
306
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());
+ else if (is_a($value, 'TgUtils\\SelfJsonEncoder')) $rc = $this->quote($value->json_encode());
308
else $rc = $this->quote(json_encode($value));
309
} else if (is_array($value)) {
310
$rc = $this->quote(json_encode($value));
0 commit comments