mirror of
https://github.com/moodle/moodle.git
synced 2025-03-15 05:00:06 +01:00
Merge branch 'MDL-62783' of https://github.com/timhunt/moodle
This commit is contained in:
commit
d451152b7e
lib/xmldb
@ -291,14 +291,14 @@ class xmldb_index extends xmldb_object {
|
|||||||
// The fields
|
// The fields
|
||||||
$indexfields = $this->getFields();
|
$indexfields = $this->getFields();
|
||||||
if (!empty($indexfields)) {
|
if (!empty($indexfields)) {
|
||||||
$result .= 'array(' . "'". implode("', '", $indexfields) . "')";
|
$result .= "['". implode("', '", $indexfields) . "']";
|
||||||
} else {
|
} else {
|
||||||
$result .= 'null';
|
$result .= 'null';
|
||||||
}
|
}
|
||||||
// Hints
|
// Hints
|
||||||
$hints = $this->getHints();
|
$hints = $this->getHints();
|
||||||
if (!empty($hints)) {
|
if (!empty($hints)) {
|
||||||
$result .= ', array(' . "'". implode("', '", $hints) . "')";
|
$result .= ", ['". implode("', '", $hints) . "']";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return result
|
// Return result
|
||||||
|
@ -430,7 +430,7 @@ class xmldb_key extends xmldb_object {
|
|||||||
// The fields
|
// The fields
|
||||||
$keyfields = $this->getFields();
|
$keyfields = $this->getFields();
|
||||||
if (!empty($keyfields)) {
|
if (!empty($keyfields)) {
|
||||||
$result .= 'array(' . "'". implode("', '", $keyfields) . "')";
|
$result .= "['". implode("', '", $keyfields) . "']";
|
||||||
} else {
|
} else {
|
||||||
$result .= 'null';
|
$result .= 'null';
|
||||||
}
|
}
|
||||||
@ -447,7 +447,7 @@ class xmldb_key extends xmldb_object {
|
|||||||
// The reffields
|
// The reffields
|
||||||
$reffields = $this->getRefFields();
|
$reffields = $this->getRefFields();
|
||||||
if (!empty($reffields)) {
|
if (!empty($reffields)) {
|
||||||
$result .= 'array(' . "'". implode("', '", $reffields) . "')";
|
$result .= "['". implode("', '", $reffields) . "']";
|
||||||
} else {
|
} else {
|
||||||
$result .= 'null';
|
$result .= 'null';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user