Skip to content

Commit e7c21ac

Browse files
committed
Merge branch 'wip-MDL-41025-m26' of git://github.com/samhemelryk/moodle
2 parents 25b8ce9 + d89733f commit e7c21ac

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/moodlelib.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -4091,15 +4091,12 @@ function update_user_record($username) {
40914091
}
40924092

40934093
/**
4094-
* Will truncate userinfo as it comes from auth_get_userinfo (from external auth)
4095-
* which may have large fields
4096-
*
4097-
* @todo Add vartype handling to ensure $info is an array
4094+
* Will truncate userinfo as it comes from auth_get_userinfo (from external auth) which may have large fields.
40984095
*
40994096
* @param array $info Array of user properties to truncate if needed
41004097
* @return array The now truncated information that was passed in
41014098
*/
4102-
function truncate_userinfo($info) {
4099+
function truncate_userinfo(array $info) {
41034100
// Define the limits.
41044101
$limit = array(
41054102
'username' => 100,

0 commit comments

Comments
 (0)