Fixing style errors.
This commit is contained in:
parent
ab0e069ae1
commit
8a2f44aec4
@ -687,7 +687,7 @@ class Shipments extends DolibarrApi
|
||||
if (!empty($object->lines) && is_array($object->lines)) {
|
||||
foreach ($object->lines as $line) {
|
||||
if (is_array($line->detail_batch)) {
|
||||
foreach($line->detail_batch as $keytmp2 => $valtmp2) {
|
||||
foreach ($line->detail_batch as $keytmp2 => $valtmp2) {
|
||||
unset($line->detail_batch[$keytmp2]->db);
|
||||
}
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ class MultiCurrencies extends DolibarrApi
|
||||
$object = parent::_cleanObjectDatas($object);
|
||||
|
||||
// Clear all fields out of interrest
|
||||
foreach($object as $key => $value){
|
||||
foreach ($object as $key => $value) {
|
||||
if ($key == "rate") $object->$key = $this->_cleanObjectDatas($object->$key);
|
||||
if ($key == "id" || $key == "code" || $key == "rate" || $key == "date_sync")
|
||||
continue;
|
||||
@ -122,5 +122,4 @@ class MultiCurrencies extends DolibarrApi
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user