mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Check if the index_alt variable is set on the indexList() return before checking if it's an array
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73517 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b12a00c391
commit
b004149267
@ -306,12 +306,14 @@ abstract class Database extends Object {
|
||||
$index_alt=DB::getConn()->modifyIndex($index, $spec);
|
||||
|
||||
if(!$newTable) {
|
||||
if(isset($this->indexList[$table][$index_alt])) {
|
||||
if(is_array($this->indexList[$table][$index_alt])) {
|
||||
$array_spec = $this->indexList[$table][$index_alt]['spec'];
|
||||
} else {
|
||||
$array_spec = $this->indexList[$table][$index_alt];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($newTable || !isset($this->indexList[$table][$index_alt])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user