summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index adbc224b9..497eb9155 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')