Skip to content

Commit dea42d1

Browse files
authored
Merge pull request #110 from oraziocontarino/master
Fix log crash when it try to log a CURLFile as text
2 parents 7ef52dd + 449db77 commit dea42d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TelegramErrorLogger.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ private function rt($array, $title = null, $head = true)
8484
$text .= "\n";
8585
}
8686
foreach ($array as $key => $value) {
87-
if (is_array($value)) {
87+
if($value instanceof CURLFile){
88+
$text .= $ref.'.'.$key.'= File'.PHP_EOL;
89+
}else if (is_array($value)) {
8890
if ($title != null) {
8991
$key = $title.'.'.$key;
9092
}

0 commit comments

Comments
 (0)