mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°1123 AttributeImage: PHP notice when displaying an object without default_image on a AttributeImage attribute.
SVN:trunk[5031]
This commit is contained in:
@@ -5538,7 +5538,7 @@ class AttributeImage extends AttributeBlob
|
||||
{
|
||||
$iMaxWidthPx = $this->Get('display_max_width');
|
||||
$iMaxHeightPx = $this->Get('display_max_height');
|
||||
$sUrl = $this->Get('default_image');
|
||||
$sUrl = $this->GetOptional('default_image', '');
|
||||
$sRet = '<img src="'.$sUrl.'" style="max-width: '.$iMaxWidthPx.'px; max-height: '.$iMaxHeightPx.'px">';
|
||||
if (is_object($value) && !$value->IsEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user