Clean code

This commit is contained in:
Laurent Destailleur 2023-02-22 00:54:13 +01:00
parent aa9f6f562e
commit 6c3ddc15f2
2 changed files with 2 additions and 2 deletions

View File

@ -1417,7 +1417,7 @@ class DolGraph
//var_dump($iinstack);
if ($iinstack) {
// Change color with offset of $$iinstack
// Change color with offset of $iinstack
//var_dump($newcolor);
if ($iinstack % 2) { // We increase agressiveness of reference color for color 2, 4, 6, ...
$ratio = min(95, 10 + 10 * $iinstack); // step of 20

View File

@ -366,7 +366,7 @@ class Mos extends DolibarrApi
$pos = 0;
$arrayofarrayname = array("arraytoconsume","arraytoproduce");
foreach ($arrayofarrayname as $arrayname) {
foreach ($$arrayname as $value) {
foreach ($arrayname as $value) {
$tmpproduct = new Product($this->db);
if (empty($value["objectid"])) {
throw new RestException(500, "Field objectid required in ".$arrayname);