Code Duplication    Length = 7-7 lines in 2 locations

admin/upgrade.php 2 locations

@@ 65-71 (lines=7) @@
62
    $indexAdmin = new ModuleAdmin();
63
    echo $indexAdmin->addNavigation('upgrade.php?op=checkTables');
64
    //1. Determine previous release
65
    if (!xhelpTableExists('xhelp_meta')) {
66
        $ver = '0.5';
67
    } else {
68
        if (!$ver = xhelpGetMeta('version')) {
69
            echo('Unable to determine previous version.');
70
        }
71
    }
72
73
    $currentVer = round($xoopsModule->getVar('version') / 100, 2);
74
@@ 107-113 (lines=7) @@
104
    $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection();
105
    //1. Determine previous release
106
    //   *** Update this in sql/mysql.sql for each release **
107
    if (!xhelpTableExists('xhelp_meta')) {
108
        $ver = '0.5';
109
    } else {
110
        if (!$ver = xhelpGetMeta('version')) {
111
            exit(_AM_XHELP_VERSION_ERR);
112
        }
113
    }
114
115
    $hStaff =& xhelpGetHandler('staff');
116
    $hMember =& xhelpGetHandler('membership');