From 19ad7a06ccdca36cae2f9b29eef2a0f96027fdf3 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Wed, 26 Apr 2023 09:20:28 +0800 Subject: [PATCH] * Fix notice. --- test/lib/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/init.php b/test/lib/init.php index a87a0c6f73..afee2383ad 100644 --- a/test/lib/init.php +++ b/test/lib/init.php @@ -75,7 +75,7 @@ if(!empty($config->test->account) and !empty($config->test->password) and !empty } global $isExtractAction; -$isExtractAction = $argv[1] == '-extract'; +$isExtractAction = $argc > 1 && $argv[1] == '-extract'; /** * Save variable to $_result.