Code Duplication    Length = 13-14 lines in 2 locations

src/projects/tclone.php 1 location

@@ 145-158 (lines=14) @@
142
143
    exit;
144
}
145
else
146
{
147
    debug_write_log(DEBUG_NOTICE, 'Data are being requested.');
148
149
    $error = NO_ERROR;
150
151
    $project_id      = $template['project_id'];
152
    $template_name   = $template['template_name'];
153
    $template_prefix = $template['template_prefix'];
154
    $critical_age    = $template['critical_age'];
155
    $frozen_time     = $template['frozen_time'];
156
    $description     = $template['description'];
157
    $guest_access    = $template['guest_access'];
158
}
159
160
// local JS functions
161

src/projects/tmodify.php 1 location

@@ 105-117 (lines=13) @@
102
103
    exit;
104
}
105
else
106
{
107
    debug_write_log(DEBUG_NOTICE, 'Data are being requested.');
108
109
    $error = NO_ERROR;
110
111
    $template_name   = $template['template_name'];
112
    $template_prefix = $template['template_prefix'];
113
    $critical_age    = $template['critical_age'];
114
    $frozen_time     = $template['frozen_time'];
115
    $description     = $template['description'];
116
    $guest_access    = $template['guest_access'];
117
}
118
119
// local JS functions
120