Skip to content
Snippets Groups Projects
Commit 21c9c3ce authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: pb with empty values

parent 2d4c8e42
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ class resources_controler
$typeIdFound = false;
$toAddressFound = false;
for ($i=0;$i<count($data);$i++) {
if (strtoupper($data[$i]['type']) == 'INTEGER' || strtoupper($data[$i]['type']) == 'INTEGER') {
if (strtoupper($data[$i]['type']) == 'INTEGER' || strtoupper($data[$i]['type']) == 'FLOAT') {
if ($data[$i]['value'] == '') {
$data[$i]['value'] = '0';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment