Skip to content

Commit

Permalink
[fix] See danielmewes#162
Browse files Browse the repository at this point in the history
  • Loading branch information
c01nd01r committed Dec 5, 2019
1 parent 393a49a commit 1ed419a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdb/DatumConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function nativeToDatum($v)
if (!is_numeric($key) && !is_string($key)) {
throw new RqlDriverError("Key must be a string.");
}
if (is_subclass_of($val, "\\r\\Query") && !is_subclass_of($val, '\r\Datum\Datum')) {
if (!is_string($val) && is_subclass_of($val, "\\r\\Query") && !is_subclass_of($val, '\r\Datum\Datum')) {
$subDatum = $val;
$mustUseMakeTerm = true;
} else {
Expand Down

0 comments on commit 1ed419a

Please sign in to comment.