* Modify lib create error.

This commit is contained in:
caoyanyi
2023-03-29 13:43:53 +08:00
parent b039d107f0
commit d6e768f79d
+1 -1
View File
@@ -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))
{