diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index 5ad61000971..2eb3ddf69a1 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -1471,7 +1471,7 @@ if (getDolGlobalString('TAKEPOS_BAR_RESTAURANT')) { // Button to print receipt if (getDolGlobalString('TAKEPOS_PRINT_METHOD') == "takeposconnector") { // deprecated method - if (getDolGlobalString('TAKEPOS_PRINT_SERVER') && filter_var(getDolGlobalString('TAKEPOS_PRINT_SERVER, FILTER_VALIDATE_URL')) == true) { + if (getDolGlobalString('TAKEPOS_PRINT_SERVER') && filter_var(getDolGlobalString('TAKEPOS_PRINT_SERVER'), FILTER_VALIDATE_URL) == true) { $menus[$r++] = array('title' => '