Code Duplication    Length = 5-5 lines in 2 locations

main/admin/group_list.php 1 location

@@ 252-256 (lines=5) @@
249
        $return_message = get_lang('UserUnlocked');
250
    }
251
252
    if (($status_db == '1' OR $status_db == '0') AND is_numeric($user_id)) {
253
        $sql = "UPDATE $user_table SET active=".intval($status_db)."
254
                WHERE user_id=".intval($user_id)."";
255
        $result = Database::query($sql);
256
    }
257
258
    if ($result) {
259
        return $return_message;

main/inc/lib/urlmanager.lib.php 1 location

@@ 376-380 (lines=5) @@
373
        if ($status == 'unlock') {
374
            $status_db = '1';
375
        }
376
        if (($status_db == '1' || $status_db == '0') && is_numeric($url_id)) {
377
            $sql = "UPDATE $url_table SET active='".intval($status_db)."'
378
                    WHERE id='".intval($url_id)."'";
379
            Database::query($sql);
380
        }
381
    }
382
383
    /**