@@ -342,8 +342,8 @@ |
||
| 342 | 342 | ); |
| 343 | 343 | |
| 344 | 344 | if (DB::count() > 0 && ( |
| 345 | - (isset($SETTINGS['duplicate_item']) && (int) $SETTINGS['duplicate_item'] === 0) |
|
| 346 | - && (int) $itemInfos['personal_folder'] === 0) |
|
| 345 | + (isset($SETTINGS['duplicate_item']) && (int) $SETTINGS['duplicate_item'] === 0) |
|
| 346 | + && (int) $itemInfos['personal_folder'] === 0) |
|
| 347 | 347 | ) { |
| 348 | 348 | throw new Exception('Similar item already exists. Duplicates are not allowed.'); |
| 349 | 349 | } |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | private function isParentFolderAllowed($parent_id, $user_accessible_folders, $user_is_admin, $user_can_create_root_folder) |
| 114 | 114 | { |
| 115 | 115 | if ($parent_id == 0 && $user_can_create_root_folder == true) |
| 116 | - return true; |
|
| 116 | + return true; |
|
| 117 | 117 | |
| 118 | 118 | if (in_array($parent_id, $user_accessible_folders) === false |
| 119 | 119 | && (int) $user_is_admin !== 1 |