mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-74886 core_admin: cast value and unit to integer
This commit is contained in:
parent
5500d143f4
commit
91acfa2b50
@ -4010,7 +4010,9 @@ class admin_setting_configduration extends admin_setting {
|
||||
return '';
|
||||
}
|
||||
|
||||
$seconds = (int)($data['v']*$data['u']);
|
||||
$unit = (int)$data['u'];
|
||||
$value = (int)$data['v'];
|
||||
$seconds = $value * $unit;
|
||||
|
||||
// Validate the new setting.
|
||||
$error = $this->validate_setting($seconds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user