Added sample test case for travis

This commit is contained in:
Manish Verma
2018-08-13 14:15:16 +05:30
parent 4c46d979a8
commit 0ad0391cb0
4 changed files with 4 additions and 6 deletions

View File

@@ -242,7 +242,7 @@ class PhpMailController extends Controller
}
// $mail->addBCC($bc);
$size = count($attach);
$size = ($attach) ? count($attach) : 0;
if ($size > 0) {
for ($i = 0; $i < $size; $i++) {
if (is_array($attach) && array_key_exists($i, $attach)) {