2
0
forked from Wavyzz/dolibarr

Remove warnings

This commit is contained in:
Laurent Destailleur
2018-09-16 10:09:19 +02:00
parent d9ffba72f0
commit e90a60d4ee

View File

@@ -1027,7 +1027,7 @@ class CMailFile
$mimedone=0;
$out = "";
if ($filename_list)
if (is_array($filename_list))
{
$filename_list_size=count($filename_list);
for($i=0;$i < $filename_list_size;$i++)
@@ -1199,7 +1199,7 @@ class CMailFile
/**
* Attach an image to email (mode = 'mail')
*
* @param array $images_list Tableau
* @param array $images_list Array of array image
* @return string Chaine images encodees
*/
function write_images($images_list)
@@ -1207,7 +1207,7 @@ class CMailFile
// phpcs:enable
$out = '';
if ($images_list)
if (is_array($images_list))
{
foreach ($images_list as $img)
{