- web: add script for replacing blank user names with the user ID

svn path=/trunk/boinc/; revision=25494
This commit is contained in:
David Anderson 2012-03-26 22:45:14 +00:00
parent 6498b0bba2
commit 0e0c7f758b
2 changed files with 18 additions and 0 deletions

View File

@ -3066,3 +3066,9 @@ David 26 Mar 2012
client/
pers_file_xfer.cpp
cpu_sched.cpp
David 26 Mar 2012
- web: add script for replacing blank user names with the user ID
html/ops/
fix_blank_user_names.php

View File

@ -0,0 +1,12 @@
<?php
// replace user names that are all whitespace with the user ID
require_once("../inc/boinc_db.inc");
$users = BoincUser::enum("trim(name)=''");
foreach ($users as $u) {
$n = (string)($u->id);
$u->update("name='$n'");
}
?>