MDL-60767 admin: fix usage of admin_write_settings
authorJake Dallimore <jake@moodle.com>
Wed, 6 Dec 2017 01:07:25 +0000 (09:07 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 18 Dec 2017 01:19:55 +0000 (09:19 +0800)
commitcf26b6f8249301ad4851646f84b479c4bfc2b7c4
tree5770fb4431af0ae139e1fa773c0fab2660afab88
parent95b7be7f0519953b608ccc411e5c42ece3d070a0
MDL-60767 admin: fix usage of admin_write_settings

Make sure we always checks for failed validation, before redirecting.
A positive return value does not signal that all settings were able
to be written, only that at least one was - errors still need to be
checked!
admin/category.php
admin/search.php
admin/settings.php