This commit is contained in:
Eloy Lafuente (stronk7) 2018-06-28 00:25:33 +02:00
commit d451152b7e
2 changed files with 4 additions and 4 deletions

View File

@ -291,14 +291,14 @@ class xmldb_index extends xmldb_object {
// The fields
$indexfields = $this->getFields();
if (!empty($indexfields)) {
$result .= 'array(' . "'". implode("', '", $indexfields) . "')";
$result .= "['". implode("', '", $indexfields) . "']";
} else {
$result .= 'null';
}
// Hints
$hints = $this->getHints();
if (!empty($hints)) {
$result .= ', array(' . "'". implode("', '", $hints) . "')";
$result .= ", ['". implode("', '", $hints) . "']";
}
// Return result

View File

@ -430,7 +430,7 @@ class xmldb_key extends xmldb_object {
// The fields
$keyfields = $this->getFields();
if (!empty($keyfields)) {
$result .= 'array(' . "'". implode("', '", $keyfields) . "')";
$result .= "['". implode("', '", $keyfields) . "']";
} else {
$result .= 'null';
}
@ -447,7 +447,7 @@ class xmldb_key extends xmldb_object {
// The reffields
$reffields = $this->getRefFields();
if (!empty($reffields)) {
$result .= 'array(' . "'". implode("', '", $reffields) . "')";
$result .= "['". implode("', '", $reffields) . "']";
} else {
$result .= 'null';
}