mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-28 22:49:38 +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);
|
||||
}
|
||||
|
||||
$xpath = '//*[not(normalize-space())]';
|
||||
|
||||
foreach (array_reverse($xml->xpath($xpath)) as $remove) {
|
||||
unset($remove[0]);
|
||||
}
|
||||
|
||||
$result = json_decode(json_encode($xml), true);
|
||||
|
||||
return $result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user