Skip to content

Commit

Permalink
Merge pull request #110 from oraziocontarino/master
Browse files Browse the repository at this point in the history
Fix log crash when it try to log a CURLFile as text
  • Loading branch information
Eleirbag89 committed Oct 3, 2017
2 parents 7ef52dd + 449db77 commit dea42d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TelegramErrorLogger.php
Expand Up @@ -84,7 +84,9 @@ private function rt($array, $title = null, $head = true)
$text .= "\n";
}
foreach ($array as $key => $value) {
if (is_array($value)) {
if($value instanceof CURLFile){
$text .= $ref.'.'.$key.'= File'.PHP_EOL;
}else if (is_array($value)) {
if ($title != null) {
$key = $title.'.'.$key;
}
Expand Down

0 comments on commit dea42d1

Please sign in to comment.