MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL

This commit is contained in:
Petr Skoda
2010-08-25 08:32:59 +00:00
parent c924a469a6
commit 04aec3dacf
4 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -212,8 +212,8 @@
$table->align = array ("left", "left", "left", "left", "left", "center", "center", "center");
$table->width = "95%";
foreach ($users as $user) {
if ($user->username == 'guest') {
continue; // do not dispaly dummy new user and guest here
if (isguestuser($user)) {
continue; // do not display guest here
}
if ($user->id == $USER->id or is_siteadmin($user)) {