Fixing auto merge issues.

This commit is contained in:
Mark Story 2009-12-27 12:45:34 -05:00
parent 7a620b62b0
commit 8b93235847

View file

@ -1888,7 +1888,6 @@ class DboSource extends DataSource {
unset($fields[$i]);
continue;
}
if (preg_match('/^\(.*\)\s' . $this->alias . '.*/i', $fields[$i])){
if (is_object($fields[$i]) && isset($fields[$i]->type) && $fields[$i]->type === 'expression') {
$fields[$i] = $fields[$i]->value;
} elseif (preg_match('/^\(.*\)\s' . $this->alias . '.*/i', $fields[$i])){