From 13262e18d00be0d99dbf3e1f2a9e5b883f7d2980 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 26 Mar 2024 12:17:16 +0100 Subject: [PATCH] Fix: Remove 'alpha' argument to GETPOSTINT() # Fix: Remove 'alpha' argument to GETPOSTINT() Remove 'alpha' argument to GETPOSTINT() which does not take that. The targetted values are ints in this context. --- htdocs/societe/ajax/company.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/ajax/company.php b/htdocs/societe/ajax/company.php index db97f1aa138..7505ea18ece 100644 --- a/htdocs/societe/ajax/company.php +++ b/htdocs/societe/ajax/company.php @@ -2,6 +2,7 @@ /* Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2007-2019 Laurent Destailleur + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,8 +50,8 @@ $outjson = (GETPOSTINT('outjson') ? GETPOSTINT('outjson') : 0); $action = GETPOST('action', 'aZ09'); $id = GETPOSTINT('id'); $excludeids = GETPOST('excludeids', 'intcomma'); -$showtype = GETPOSTINT('showtype', 'alpha'); -$showcode = GETPOSTINT('showcode', 'alpha'); +$showtype = GETPOSTINT('showtype'); +$showcode = GETPOSTINT('showcode'); $object = new Societe($db); if ($id > 0) {