-
Bug
-
Resolution: Fixed
-
Major
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
wip-
MDL-43175-master -
-
5
-
BACKEND Sprint 7
Checks are done to ensure that the 'other' event field does not contain an object.
If the 'other' field contains a float which is a whole number (e.g. 90) then the encoding / decoding will result in the number being returned as an integer. When the comparison is done it will fail.
Solution: The comparison does not have to be so strict to catch if objects are being passed. '!=' will suffice.
@see lib/classes/event/base.php line 447