From d11405205c3c02ed5aba69c925a4e1cbded304b4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 26 Jun 2016 19:21:04 +0200 Subject: [PATCH] fix some scrutinizer "bugs" --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index a3d2fefae5..24bfe313a2 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -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);