Skip to content

Commit 87af5f8

Browse files
committed
Fix logic
1 parent d218e86 commit 87af5f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ protected function objectToArray($object)
26982698

26992699
foreach (get_object_vars($object) as $key => $val) {
27002700
// There are some built in keys we need to ignore for this conversion
2701-
if ((! is_object($val) && ! is_array($val) && $key !== '_parent_name') || is_a($val, RawSql::class)) {
2701+
if (((! is_object($val) || $val instanceof RawSql) && ! is_array($val) && $key !== '_parent_name')) {
27022702
$array[$key] = $val;
27032703
}
27042704
}

0 commit comments

Comments
 (0)