warning_settings isn't properly used.

There are several places where $modSettings['warning_settings'] was used as an array, but it was never made an array in the first instace. Either it should be used as a string or be splitted into an array. My fix does the same as it was aldready done in Admin.php