Commit 87effbfdbd3b025a1bdab93d94f76e525e225ee3
1 parent
0ab5efd0
Exists in
master
and in
104 other branches
Fix typo
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
php/classes/SharedObjectsMgr.php
... | ... | @@ -31,7 +31,7 @@ class SharedObjectsMgr { |
31 | 31 | |
32 | 32 | return array('success' => $sucess, 'message' => $message); |
33 | 33 | } |
34 | - | |
34 | + | |
35 | 35 | public function add($object_type, $object_name, $folder_id, $src_object_path, $description, $sharedBy, $forceId = "") { |
36 | 36 | if (!array_key_exists($object_type, $this->sharedObjectsMgr) || !isset($this->sharedObjectsMgr[$object_type])) |
37 | 37 | return array('success' => FALSE, 'message' => 'Unknown type'); |
... | ... | @@ -43,7 +43,7 @@ class SharedObjectsMgr { |
43 | 43 | |
44 | 44 | $id = empty($forceId) ? $this->treeFile->reserveNewId($object_type) : $forceId; |
45 | 45 | |
46 | - $result = $this->sharedObjectsMgr[$object_type]->add($object_name, $folder_name, $src_object_path, $description, $sharedBy, $forceId); | |
46 | + $result = $this->sharedObjectsMgr[$object_type]->add($object_name, $folder_name, $src_object_path, $description, $sharedBy, $id); | |
47 | 47 | |
48 | 48 | if ($result['success']) |
49 | 49 | $result['folder_id'] = $folder_id; | ... | ... |