Code Duplication    Length = 10-11 lines in 2 locations

htdocs/util/watchlist/runwatch.php 1 location

@@ 30-40 (lines=11) @@
27
}
28
29
if (!function_exists('get_logtype_name')) {
30
    function get_logtype_name($logtype, $language)
31
    {
32
        return sqlValue(
33
            "SELECT IFNULL(`stt`.`text`, `log_types`.`en`)
34
         FROM `log_types`
35
         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`log_types`.`trans_id`
36
         AND `stt`.`lang`='" . sql_escape($language) . "'
37
         WHERE `log_types`.`id`='" . sql_escape($logtype) . "'",
38
            ''
39
        );
40
    }
41
}
42
43
$sDateformat = 'Y-m-d H:i:s';

htdocs/lib/common.inc.php 1 location

@@ 809-818 (lines=10) @@
806
    return '';
807
}
808
809
function get_logtype_name($logtype, $language)
810
{
811
    return sqlValue(
812
        "SELECT IFNULL(`stt`.`text`, `log_types`.`en`)
813
         FROM `log_types`
814
         LEFT JOIN `sys_trans_text` `stt` ON `stt`.`trans_id`=`log_types`.`trans_id` AND `stt`.`lang`='" . sql_escape($language) . "'
815
         WHERE `log_types`.`id`='" . sql_escape($logtype) . "'",
816
        ''
817
    );
818
}
819