BUGFIX Fixing index building failing on array check when the index is a string.

This commit is contained in:
Sean Harvey 2012-06-12 13:55:49 +12:00
parent 1fd2088c96
commit 200dcf3121
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ class PostgreSQLDatabase extends SS_Database {
$triggers='';
if($indexes){
foreach($indexes 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);
$fulltexts.=$ts_details['fulltexts'] . ', ';
$triggers.=$ts_details['triggers'];