|
@@ -142,7 +142,7 @@ class sbo__database_cross_reference extends ChadoField {
|
|
$linker_table = $base_table . '_dbxref';
|
|
$linker_table = $base_table . '_dbxref';
|
|
$options = array('return_array' => 1);
|
|
$options = array('return_array' => 1);
|
|
$record = chado_expand_var($record, 'table', $linker_table, $options);
|
|
$record = chado_expand_var($record, 'table', $linker_table, $options);
|
|
- if (count($record->$linker_table) > 0) {
|
|
|
|
|
|
+ if (property_exists($record, $linker_table) and is_array($record->$linker_table) and count($record->$linker_table) > 0) {
|
|
$i = 0;
|
|
$i = 0;
|
|
foreach ($record->$linker_table as $index => $linker) {
|
|
foreach ($record->$linker_table as $index => $linker) {
|
|
$dbxref = $linker->dbxref_id;
|
|
$dbxref = $linker->dbxref_id;
|