Code Duplication    Length = 5-5 lines in 5 locations

blocks/faqs_recent.php 1 location

@@ 22-26 (lines=5) @@
19
20
    $block = array();
21
22
    if ($options[0] == 0) {
23
        $categoryid = -1;
24
    } else {
25
        $categoryid = $options[0];
26
    }
27
28
    $sort              = $options[1];
29
    $limit             = $options[2];

blocks/faqs_context.php 1 location

@@ 18-22 (lines=5) @@
15
16
    $block = array();
17
18
    if ($options[0] == 0) {
19
        $categoryid = -1;
20
    } else {
21
        $categoryid = $options[0];
22
    }
23
24
    $limit = $options[0];
25

blocks/faqs_most_viewed.php 1 location

@@ 17-21 (lines=5) @@
14
    include_once(XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php');
15
16
    $block = array();
17
    if ($options[0] == 0) {
18
        $categoryid = -1;
19
    } else {
20
        $categoryid = $options[0];
21
    }
22
    $sort              = 'counter';
23
    $limit             = $options[1];
24
    $maxQuestionLength = $options[2];

blocks/faqs_new.php 1 location

@@ 18-22 (lines=5) @@
15
16
    $block = array();
17
18
    if ($options[0] == 0) {
19
        $categoryid = -1;
20
    } else {
21
        $categoryid = $options[0];
22
    }
23
24
    $sort              = $options[1];
25
    $limit             = $options[2];

blocks/faqs_recent_questions.php 1 location

@@ 18-22 (lines=5) @@
15
16
    $block = array();
17
18
    if ($options[0] == 0) {
19
        $categoryid = -1;
20
    } else {
21
        $categoryid = $options[0];
22
    }
23
24
    $sort              = $options[1];
25
    $limit             = $options[2];