diff --git a/system/Database/BaseBuilder.php b/system/Database/BaseBuilder.php index 9d5a02db9f6e..052352e5516f 100644 --- a/system/Database/BaseBuilder.php +++ b/system/Database/BaseBuilder.php @@ -3297,7 +3297,7 @@ protected function objectToArray($object) $array = []; foreach (get_object_vars($object) as $key => $val) { - if ((! is_object($val) || $val instanceof RawSql) && ! is_array($val)) { + if ((! is_object($val)) && ! is_array($val)) { $array[$key] = $val; } }