mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
Merge branch 'MDL-63252-master' of git://github.com/lameze/moodle into master
This commit is contained in:
commit
8d1785fec5
@ -93,6 +93,17 @@ class check_defaults extends XMLDBCheckAction {
|
||||
$physicaldefault = null;
|
||||
}
|
||||
|
||||
// For number fields there are issues with type differences, so let's convert
|
||||
// everything to a float.
|
||||
if ($xmldbfield->getType() === XMLDB_TYPE_NUMBER) {
|
||||
if ($physicaldefault !== null) {
|
||||
$physicaldefault = (float) $physicaldefault;
|
||||
}
|
||||
if ($xmldbdefault !== null) {
|
||||
$xmldbdefault = (float) $xmldbdefault;
|
||||
}
|
||||
}
|
||||
|
||||
// There *is* a default and it's wrong.
|
||||
if ($physicaldefault !== $xmldbdefault) {
|
||||
$xmldbtext = self::display_default($xmldbdefault);
|
||||
|
Loading…
x
Reference in New Issue
Block a user