mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-30 07:26:24 +01:00
Fix importazione FE con codice articolo vuoto
This commit is contained in:
parent
4a2e5830d4
commit
ffa81f82d0
@ -48,6 +48,12 @@ class XML
|
|||||||
throw new Exception($message);
|
throw new Exception($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$xpath = '//*[not(normalize-space())]';
|
||||||
|
|
||||||
|
foreach (array_reverse($xml->xpath($xpath)) as $remove) {
|
||||||
|
unset($remove[0]);
|
||||||
|
}
|
||||||
|
|
||||||
$result = json_decode(json_encode($xml), true);
|
$result = json_decode(json_encode($xml), true);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user