mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-18293 exception and DML cleanup
This commit is contained in:
parent
68fbad4417
commit
013376dec4
4 changed files with 45 additions and 56 deletions
|
@ -242,16 +242,11 @@ function config_form($frm) {
|
|||
* @param config all the configuration data as entered by the admin
|
||||
*/
|
||||
function process_config($config) {
|
||||
|
||||
$return = true;
|
||||
|
||||
foreach ($config as $name => $value) {
|
||||
if (!set_config($name, $value)) {
|
||||
$return = false;
|
||||
}
|
||||
set_config($name, $value);
|
||||
}
|
||||
|
||||
return $return;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue