mirror of https://github.com/BOINC/boinc.git
- web: add script for replacing blank user names with the user ID
svn path=/trunk/boinc/; revision=25494
This commit is contained in:
parent
6498b0bba2
commit
0e0c7f758b
|
@ -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
|
||||
|
|
|
@ -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'");
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue