Fix Undefined variable notice

The settings screen doesn't work - when saving, all checkboxes are allways checked. This fixes the problem.