Code Duplication    Length = 4-4 lines in 2 locations

index.php 2 locations

@@ 1054-1057 (lines=4) @@
1051
        $qs['dept'] = $dept;
1052
        $crit->add(new Criteria('department', $dept, '=', 't'));
1053
    }
1054
    if ($status != -1) {
1055
        $qs['status'] = $status;
1056
        $crit->add(new Criteria('status', $status, '=', 't'));
1057
    }
1058
    if ($ownership != -1) {
1059
        $qs['ownership'] = $ownership;
1060
        $crit->add(new Criteria('ownership', $ownership, '=', 't'));
@@ 1337-1340 (lines=4) @@
1334
        $qs['dept'] = $dept;
1335
        $crit->add(new Criteria('department', $dept, '=', 't'));
1336
    }
1337
    if ($status != -1) {
1338
        $qs['status'] = $status;
1339
        $crit->add(new Criteria('status', $status, '=', 't'));
1340
    }
1341
1342
    if($state != -1){
1343
        $qs['state'] = $state;