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

This commit is contained in:
Rémi Gaillard
2012-12-04 11:56:17 +01:00
parent aac0500c72
commit e70069bdfa
@@ -387,7 +387,7 @@ class WebserviceSpecificManagementImagesCore implements WebserviceSpecificManage
{ {
case 'GET': case 'GET':
case 'HEAD': 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; return true;
break; break;
case 'PUT': case 'PUT':