diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index 0005979e7..0a0e9b09b 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -1990,13 +1990,16 @@ class SynchroReplica extends DBObject implements iDisplay } $oPage->Details($aDetails); $oPage->add(''); - $oDestObj = MetaModel::GetObject($this->Get('dest_class'), $this->Get('dest_id'), false); - if (is_object($oDestObj)) + if (strlen($this->Get('dest_class')) > 0) { - $oPage->add('
'); - $oPage->add(''.Dict::Format('Core:SynchroReplica:TargetObject', $oDestObj->GetHyperlink()).''); - $oDestObj->DisplayBareProperties($oPage, false, $sPrefix, $aExtraParams); - $oPage->add('
'); + $oDestObj = MetaModel::GetObject($this->Get('dest_class'), $this->Get('dest_id'), false); + if (is_object($oDestObj)) + { + $oPage->add('
'); + $oPage->add(''.Dict::Format('Core:SynchroReplica:TargetObject', $oDestObj->GetHyperlink()).''); + $oDestObj->DisplayBareProperties($oPage, false, $sPrefix, $aExtraParams); + $oPage->add('
'); + } } $oPage->add(''); $oPage->add('
');