diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 2cd9db76c38..5f8f007a186 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -81,7 +81,7 @@ function clean_param($param, $options) { /// Given a parameter and a bitfield of options, this function /// will clean it up and give it the required type, etc. - if ($param == (int)$param) { // It's just an integer + if ((string)$param == (string)(int)$param) { // It's just an integer return $param; }