Error management
This commit is contained in:
parent
6b2faf02d9
commit
c207080527
@ -331,10 +331,16 @@ if (preg_match('/\.\./',$original_file) || preg_match('/[<>|]/',$original_file))
|
|||||||
|
|
||||||
if ($modulepart == 'barcode')
|
if ($modulepart == 'barcode')
|
||||||
{
|
{
|
||||||
$generator=$_GET["generator"];
|
$generator=GETPOST("generator","alpha");
|
||||||
$code=$_GET["code"];
|
$code=GETPOST("code");
|
||||||
$encoding=$_GET["encoding"];
|
$encoding=GETPOST("encoding","alpha");
|
||||||
$readable=$_GET["readable"]?$_GET["readable"]:"Y";
|
$readable=GETPOST("readable")?GETPOST("readable","alpha"):"Y";
|
||||||
|
|
||||||
|
if (empty($generator) || empty($encoding))
|
||||||
|
{
|
||||||
|
dol_print_error(0,'Error, parameter "generator" or "encoding" not defined');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$dirbarcode=array_merge(array("/core/modules/barcode/"),$conf->modules_parts['barcode']);
|
$dirbarcode=array_merge(array("/core/modules/barcode/"),$conf->modules_parts['barcode']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user