Skip to content

Commit

Permalink
fix: 500 error in php8
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf committed Mar 12, 2021
1 parent bc66f43 commit 6230773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disk/Googledrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function list_path($path = '/')
if (in_array(splitlast($item['name'],'.')[1], $exts['txt'])) {
if (!(isset($item['content'])&&$item['content']['stat']==200)) {
//if (!isset($item['downUrl'])) {
$res = curl('GET', $item['webContentLink'], '', '', 1);
$res = curl('GET', $item['webContentLink'], '', [], 1);
$weblink = $res['returnhead']['Location'];
//if ($weblink!==null) $item['downUrl'] = $weblink;
//else error_log1('Cant get link:' . json_encode($res, JSON_PRETTY_PRINT));
Expand Down

0 comments on commit 6230773

Please sign in to comment.