fix some scrutinizer "bugs"

This commit is contained in:
Ralf Becker 2016-06-26 19:21:04 +02:00
parent 9860c9d8b7
commit d11405205c

View File

@ -6933,7 +6933,7 @@ class Mail
case 'vfs':
break;
case 'egw-data':
$message = Link::get_data(parse_url($tmpFileName, PHP_URL_HOST), true);
$message = ($host = parse_url($tmpFileName, PHP_URL_HOST)) ? Link::get_data($host, true) : false;
break;
default:
$tmpFileName = $GLOBALS['egw_info']['server']['temp_dir'].'/'.basename($tmpFileName);