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)) {