Code Duplication    Length = 7-7 lines in 2 locations

admin/category.php 1 location

@@ 396-402 (lines=7) @@
393
 **/
394
395
$op = 'default';
396
if (isset($_POST['op'])) {
397
    $op=$_POST['op'];
398
} else {
399
    if (isset($_GET['op'])) {
400
        $op=$_GET['op'];
401
    }
402
}
403
404
switch ( $op ) {
405
case "mod":

admin/entry.php 1 location

@@ 509-515 (lines=7) @@
506
507
/* -- Available operations -- */
508
$op = 'default';
509
if (isset($_POST['op'])) {
510
    $op=$_POST['op'];
511
} else {
512
    if (isset($_GET['op'])) {
513
        $op=$_GET['op'];
514
    }
515
}
516
switch ( $op ) {
517
    case "mod":
518
        $entryID = ( isset( $_GET['entryID'] ) ) ? intval($_GET['entryID']) : intval($_POST['entryID']);