From d6e768f79d3b1615fe4c4430f222c9612ede8fbf Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 29 Mar 2023 13:43:53 +0800 Subject: [PATCH] * Modify lib create error. --- module/api/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/api/control.php b/module/api/control.php index ce49b623d6..bd0944e0dc 100755 --- a/module/api/control.php +++ b/module/api/control.php @@ -380,7 +380,7 @@ class api extends control */ public function createLib($type = 'product', $objectID = 0) { - if(empty($type)) $type = 'product'; + if(!in_array($type, array('product', 'project'))) $type = 'product'; if(!empty($_POST)) {