mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0
This commit is contained in:
@@ -61,7 +61,7 @@ if ($_POST["action"] == 'dispatch' && $user->rights->fournisseur->commande->rece
|
||||
|
||||
foreach($_POST as $key => $value)
|
||||
{
|
||||
if ( eregi('^product_([0-9]+)$', $key, $reg) )
|
||||
if ( preg_match('/^product_([0-9]+)$/i', $key, $reg) )
|
||||
{
|
||||
$prod = "product_".$reg[1];
|
||||
$qty = "qty_".$reg[1];
|
||||
|
||||
Reference in New Issue
Block a user