Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-29199' of git://github.com/danpoltawski/moodle into…

… MOODLE_22_STABLE
  • Loading branch information...
commit 98e9b0f21e4213fee4a3e3aad2e4318ca6444ee6 2 parents 515acf7 + 9ee937e
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dml/oci_native_moodle_database.php
View
2  lib/dml/oci_native_moodle_database.php
@@ -303,7 +303,7 @@ protected function fix_table_names($sql) {
if (preg_match_all('/\{([a-z][a-z0-9_]*)\}/', $sql, $matches)) {
foreach($matches[0] as $key=>$match) {
$name = $matches[1][$key];
- if ($this->temptables->is_temptable($name)) {
+ if ($this->temptables && $this->temptables->is_temptable($name)) {
$sql = str_replace($match, $this->temptables->get_correct_name($name), $sql);
} else {
$sql = str_replace($match, $this->prefix.$name, $sql);
Please sign in to comment.
Something went wrong with that request. Please try again.