Removed scrutinizer warning

This commit is contained in:
Laurent Destailleur 2018-10-19 15:02:54 +02:00
parent b32ffdbbb9
commit 897a2b09a7

View File

@ -1350,10 +1350,10 @@ class CMailFile
// Build the list of image extensions
$extensions = array_keys($this->image_types);
$matches = array();
preg_match_all('/(?:"|\')([^"\']+\.('.implode('|', $extensions).'))(?:"|\')/Ui', $this->html, $matches); // If "xxx.ext" or 'xxx.ext' found
if ($matches)
if (! empty($matches))
{
$i=0;
foreach ($matches[1] as $full)