From b08a74daa9225e7ac256bb10f3abf15ef53dbbd2 Mon Sep 17 00:00:00 2001 From: easysoft Date: Sun, 31 May 2015 16:21:10 +0800 Subject: [PATCH] * fix the bug of get params. --- pkg/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pkg b/pkg/pkg index 52930ee..b1c0f34 100755 --- a/pkg/pkg +++ b/pkg/pkg @@ -231,7 +231,7 @@ class pkg $package = $this->parsePackageINI($pkgIniFile); /* Set model, the default mode is full. full|lite. */ - $mode = isset($params[2]) ? $params[2] : 'full'; + $mode = (is_array($params) and isset($params[2])) ? $params[2] : 'full'; /* Get files. */ if(is_array($params))