MDL-29894 forbid objects in DML parameters
[moodle.git] / lib / dml / oci_native_moodle_database.php
index b780bd4..8e10ff1 100644 (file)
@@ -682,6 +682,8 @@ class oci_native_moodle_database extends moodle_database {
      * @return mixed the normalised value
      */
     protected function normalise_value($column, $value) {
      * @return mixed the normalised value
      */
     protected function normalise_value($column, $value) {
+        $this->detect_objects($value);
+
         if (is_bool($value)) { // Always, convert boolean to int
             $value = (int)$value;
 
         if (is_bool($value)) { // Always, convert boolean to int
             $value = (int)$value;