Skip to content

Commit

Permalink
BUGFIX Fixing check for array when building indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Harvey committed Jun 12, 2012
1 parent 200dcf3 commit 29512e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/PostgreSQLDatabase.php
Expand Up @@ -548,7 +548,7 @@ public function alterTable($tableName, $newFields = null, $newIndexes = null, $a
//Pick up the new indexes here:
if($newIndexes){
foreach($newIndexes as $name=>$this_index){
if($this_index['type']=='fulltext'){
if(is_array($this_index) && $this_index['type']=='fulltext'){
$ts_details=$this->fulltext($this_index, $tableName, $name);
if(!isset($fieldList[$ts_details['ts_name']])){
$fulltexts.="ALTER TABLE \"{$tableName}\" ADD COLUMN {$ts_details['fulltexts']};";
Expand Down

0 comments on commit 29512e5

Please sign in to comment.