You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Describe the bug
If the setting 'setting_how' is missing from the settings table, the include/global_settings.php's default value for this is 'PHP Mail() Function' yet uses the $mail_methods in a drop_array style. As such, this is an invalid index against the array and causes issues when later trying to display what method is being used.
To Reproduce
Steps to reproduce the behavior:
Go to MySQL
Execute `DELETE FROM settings WHERE name = 'settings_how'
netniV
changed the title
Default value is text for which mail method to use, should be integer
Default value for 'Mail Method' (settings_how) is incorrect resulting in errors
Feb 24, 2019
Describe the bug
If the setting 'setting_how' is missing from the settings table, the include/global_settings.php's default value for this is 'PHP Mail() Function' yet uses the $mail_methods in a drop_array style. As such, this is an invalid index against the array and causes issues when later trying to display what method is being used.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
read_config_option('settings_how') should be returning an index number instead of a name.
The text was updated successfully, but these errors were encountered: