[-] WS: #PSCFV-5982 logo email/invoices/mail don't return standard logo if not exists

This commit is contained in:
Rémi Gaillard committed 2012-12-04 11:56:17 +01:00
1 parent aac0500c72
commit e70069bdfa
1 file changed
+1 -1
@@ -387,7 +387,7 @@ class WebserviceSpecificManagementImagesCore implements WebserviceSpecificManage
{
case 'GET':
case 'HEAD':
$this->imgToDisplay = ($path != '' && file_exists($path)) ? $path : $alternative_path;
$this->imgToDisplay = ($path != '' && file_exists($path) && is_file($path)) ? $path : $alternative_path;
return true;
break;
case 'PUT':