diff --git a/modules/system/system.api.php b/modules/system/system.api.php index adbc224b94756daca230360e37b97d1cd80366a6..497eb91557fcf07f17994576352a8564e9daebf4 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -2812,12 +2812,14 @@ function hook_update_N(&$sandbox) { // We'll -1 to disregard the uid 0... $sandbox['max'] = db_query('SELECT COUNT(DISTINCT uid) FROM {users}')->fetchField() - 1; } - db_select('users', 'u') + + $users = db_select('users', 'u') ->fields('u', array('uid', 'name')) ->condition('uid', $sandbox['current_uid'], '>') ->range(0, 3) ->orderBy('uid', 'ASC') ->execute(); + foreach ($users as $user) { $user->name .= '!'; db_update('users')