From 6230773e52d6138231b13fb92bbe76ad3f8a19a4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 12 Mar 2021 17:37:26 +0800 Subject: [PATCH] fix: 500 error in php8 --- disk/Googledrive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/Googledrive.php b/disk/Googledrive.php index 5d71495..22c0fae 100644 --- a/disk/Googledrive.php +++ b/disk/Googledrive.php @@ -132,7 +132,7 @@ class Googledrive { 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)); -- GitLab