From 85cdc6b211307a625e44691f2780d0cc18451f6d Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 18 Jan 2021 15:04:42 +0800 Subject: [PATCH] fix bug: error drive will 500 --- common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common.php b/common.php index 99d089e..7290ad0 100644 --- a/common.php +++ b/common.php @@ -417,6 +417,7 @@ function baseclassofdrive($d = null) function extendShow_diskenv($drive) { + if (!$drive) return []; return $drive->ext_show_innerenv(); }