mirror of
https://github.com/moodle/moodle.git
synced 2025-04-26 19:03:38 +02:00
MDL-76092 core_backup: Fix PHP8.0 vulnerability convert_params_to_values
This commit is contained in:
parent
cccc00954d
commit
d2279457f0
@ -72,7 +72,7 @@ abstract class backup_structure_dbops extends backup_dbops {
|
||||
throw new base_element_struct_exception('valueofparamelementnotset', $param->get_name());
|
||||
}
|
||||
|
||||
} else if ($param < 0) { // Possibly one processor variable, let's process it
|
||||
} else if (is_numeric($param) && $param < 0) { // Possibly one processor variable, let's process it
|
||||
// See @backup class for all the VAR_XXX variables available.
|
||||
// Note1: backup::VAR_PARENTID is handled by nested elements themselves
|
||||
// Note2: trying to use one non-existing var will throw exception
|
||||
|
Loading…
x
Reference in New Issue
Block a user