Skip to content

Commit

Permalink
* fix the bug of get params.
Browse files Browse the repository at this point in the history
  • Loading branch information
easysoft committed May 31, 2015
1 parent e2f0698 commit b08a74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pkg
Expand Up @@ -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))
Expand Down

0 comments on commit b08a74d

Please sign in to comment.