Index: pdo_moodle_database.php =================================================================== RCS file: /cvsroot/moodle/contrib/patches/sqlite/pdo_moodle_database.php,v retrieving revision 1.3 diff -u -r1.3 pdo_moodle_database.php --- pdo_moodle_database.php 14 Aug 2008 22:00:44 -0000 1.3 +++ pdo_moodle_database.php 15 Aug 2008 06:41:09 -0000 @@ -618,12 +618,12 @@ // begin: insert_record_raw snippet $this->writes++; - $fields = implode(',', array_keys($params)); - $qms = array_fill(0, count($params), '?'); + $fields = implode(',', array_keys($cleaned)); + $qms = array_fill(0, count($cleaned), '?'); $qms = implode(',', $qms); $sql = "INSERT INTO {{$table}} ($fields) VALUES($qms)"; - if (!$this->execute($sql, $params)) { + if (!$this->execute($sql, $cleaned)) { return false; } // end: insert_record_raw snippet