mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-24 17:53:17 +01:00
Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0
This commit is contained in:
@@ -47,7 +47,7 @@ function barcode_encode_ean($ean, $encoding = "EAN-13"){
|
||||
$guards=array("9a1a","1a1a1","a1a");
|
||||
|
||||
$ean=trim($ean);
|
||||
if (eregi("[^0-9]",$ean)){
|
||||
if (preg_match("/[^0-9]/i",$ean)){
|
||||
return array("text"=>"Invalid EAN-Code");
|
||||
}
|
||||
$encoding=strtoupper($encoding);
|
||||
|
||||
Reference in New Issue
Block a user