Thomas-Gelf / icingaweb2-module-eventtracker

2 stars 3 forks source link

Empty Attributes should be an Object, not an Array #14

Closed Thomas-Gelf closed 3 years ago

Thomas-Gelf commented 3 years ago

Problem: json_decode() ships [] instead of {} for an empty object. Should probably better be null or an object of a specific type, but in the meantime we need a workaround

Thomas-Gelf commented 3 years ago

Hint: the real bug is that there is such data in the DB, as it should be NULL. For compatibility reasons, we have to deal with both