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

fix: pb with empty values

parent 56c75643
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,11 @@ 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 ($data[$i]['value'] == '') {
$data[$i]['value'] = '0';
}
}
if (strtoupper($data[$i]['column']) == strtoupper('status')) {
$statusFound = true;
}
......
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