Skip to content

Commit 664b108

Browse files
Fix log crash when it try to log a file as a text.
1 parent 7ef52dd commit 664b108

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TelegramErrorLogger.php

Lines changed: 3 additions & 1 deletion
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.'= CURLFile'.PHP_EOL;
89+
}else if (is_array($value)) {
8890
if ($title != null) {
8991
$key = $title.'.'.$key;
9092
}

0 commit comments

Comments
 (0)