Skip to content

Commit

Permalink
[FEATURE#22851] Suppression du @
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Dubost committed Dec 14, 2015
1 parent 80792eb commit 4fa96e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/NotifyUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ public static function prepareFilesForMail(array $files)
$prepared = [];

foreach ($files as $file) {
if (!isset($file["path"]) ||
!isset($file["name"]) ||
false === ($file_content = @file_get_contents($file["path"]))) {
if (!isset($file["path"]) || !isset($file["name"]) || false === file_exists($file["path"])) {
continue;
}
$prepared[] = [
"name" => $file["name"],
"content" => base64_encode($file_content),
"content" => base64_encode(file_get_contents($file["path"])),
];
}

Expand Down

0 comments on commit 4fa96e8

Please sign in to comment.