special case ''!=0

This commit is contained in:
Werner Masik
2026-06-24 11:59:49 +02:00
parent 1bb4181974
commit 637cc1d1ae
@@ -40,6 +40,9 @@ abstract class AbstractBestandteil implements IValidation
if( is_bool($new_value) && ($old_value !== $new_value) ) {
$this->modifiedcolumns[$columnname] = $columnname;
} else if($old_value === '' xor $new_value === '') {
// handle special case of ''!=0 because of different behavior in PHP 7 vs. 8
$this->modifiedcolumns[$columnname] = $columnname;
} else if($old_value != $new_value) {
$this->modifiedcolumns[$columnname] = $columnname;
}