Code Duplication    Length = 7-7 lines in 2 locations

install/src/controllers/summary.php 2 locations

@@ 241-247 (lines=7) @@
238
// check table prefix
239
if ($conn && $installMode == 0) {
240
    echo '<p>' . $_lang['checking_table_prefix'] . $table_prefix . '`: ';
241
    if ($rs= mysqli_query($conn, "SELECT COUNT(*) FROM $dbase.`" . $table_prefix . "site_content`")) {
242
        echo '<span class="notok">' . $_lang['failed'] . '</span></b>' . $_lang['table_prefix_already_inuse'] . '</p>';
243
        $errors++;
244
        echo "<p>" . $_lang['table_prefix_already_inuse_note'] . '</p>';
245
    } else {
246
        echo '<span class="ok">' . $_lang['ok'] . '</span></p>';
247
    }
248
} elseif ($conn && $installMode == 2) {
249
    echo '<p>' . $_lang['checking_table_prefix'] . $table_prefix . '`: ';
250
    if (!$rs = mysqli_query($conn, "SELECT COUNT(*) FROM $dbase.`" . $table_prefix . "site_content`")) {
@@ 250-256 (lines=7) @@
247
    }
248
} elseif ($conn && $installMode == 2) {
249
    echo '<p>' . $_lang['checking_table_prefix'] . $table_prefix . '`: ';
250
    if (!$rs = mysqli_query($conn, "SELECT COUNT(*) FROM $dbase.`" . $table_prefix . "site_content`")) {
251
        echo '<span class="notok">' . $_lang['failed'] . '</span></b>' . $_lang['table_prefix_not_exist'] . '</p>';
252
        $errors++;
253
        echo '<p>' . $_lang['table_prefix_not_exist_note'] . '</p>';
254
  } else {
255
        echo '<span class="ok">' . $_lang['ok'] . '</span></p>';
256
  }
257
}
258
259
// check mysql version