Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MDL-29894 forbid objects in DML parameters
[moodle.git]
/
lib
/
dml
/
oci_native_moodle_database.php
diff --git
a/lib/dml/oci_native_moodle_database.php
b/lib/dml/oci_native_moodle_database.php
index
b780bd4
..
8e10ff1
100644
(file)
--- a/
lib/dml/oci_native_moodle_database.php
+++ b/
lib/dml/oci_native_moodle_database.php
@@
-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;