Code Duplication    Length = 3-4 lines in 2 locations

main/dropbox/dropbox_submit.php 1 location

@@ 126-129 (lines=4) @@
123
                            break;
124
                        }
125
                    }
126
                } else {
127
                    // rename file to login_filename_uniqueId format
128
                    $dropbox_filename = getLoginFromId( $_user['user_id']) . '_' . $dropbox_filename . '_'.uniqid('');
129
                }
130
131
                if (!is_dir(dropbox_cnf('sysPath'))) {
132
                    //The dropbox subdir doesn't exist yet so make it and create the .htaccess file

main/dropbox/dropbox_functions.inc.php 1 location

@@ 1036-1038 (lines=3) @@
1033
                break;
1034
            }
1035
        }
1036
    } else {  // rename file to login_filename_uniqueId format
1037
        $dropbox_filename = getLoginFromId($_user['user_id']) . "_" . $dropbox_filename . "_".uniqid('');
1038
    }
1039
1040
    // creating the array that contains all the users who will receive the file
1041
    $new_work_recipients = array();