forked from Wavyzz/dolibarr
Replace function rand with mt_rand (prepare php 8)
This commit is contained in:
@@ -2675,7 +2675,7 @@ class Propal extends CommonObject
|
||||
$line->remise_percent=00;
|
||||
}
|
||||
|
||||
$prodid = rand(1, $num_prods);
|
||||
$prodid = mt_rand(1, $num_prods);
|
||||
$line->fk_product=$prodids[$prodid];
|
||||
|
||||
$this->lines[$xnbp]=$line;
|
||||
|
||||
Reference in New Issue
Block a user