Code Duplication    Length = 6-6 lines in 2 locations

htdocs/lib2/login.class.php 1 location

@@ 381-386 (lines=6) @@
378
        global $opt, $cookie;
379
380
        // language specified in cookie?
381
        if ($cookie->is_set('usercountry')) {
382
            $sCountry = $cookie->get('usercountry', null);
383
            if ($sCountry != null) {
384
                return $sCountry;
385
            }
386
        }
387
388
389

htdocs/lib/common.inc.php 1 location

@@ 717-722 (lines=6) @@
714
    global $opt, $cookie, $usr;
715
716
    // language specified in cookie?
717
    if ($cookie->is_set('usercountry')) {
718
        $sCountry = $cookie->get('usercountry', null);
719
        if ($sCountry != null) {
720
            return $sCountry;
721
        }
722
    }
723
724
    // user specified a country?
725
    if (isset($usr) && ($usr !== false)) {