* resources: fix for missing/not loaded pictures for resources in default/images/resource_icons/

This commit is contained in:
Klaus Leithoff 2012-04-24 07:16:17 +00:00
parent 857336e696
commit 89fa80a750

View File

@ -660,6 +660,7 @@ class resources_bo
// fall through // fall through
case 'gen_src': case 'gen_src':
default : default :
$src = $resource['picture_src'];
$picture = $GLOBALS['egw_info']['server']['webserver_url'].$this->resource_icons; $picture = $GLOBALS['egw_info']['server']['webserver_url'].$this->resource_icons;
$picture .= strpos($src,'.') !== false ? $src : 'generic.png'; $picture .= strpos($src,'.') !== false ? $src : 'generic.png';
} }