case insens comparation to add user to the placing
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 23 Jul 2009 14:00:54 +0000 (14:00 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 23 Jul 2009 14:00:54 +0000 (14:00 +0000)
web/briskin5/Obj/placing.phh

index 36d2950..4358b6e 100644 (file)
@@ -135,7 +135,7 @@ function placing_show(&$user, $suff)
                       ($pg->username == $user->name ? "<b>" : ""), $pg->username, ($pg->username == $user->name ? "</b>" : ""), $pg->snormpts(), $pg->pts, $pg->gam);
     }
     if ($user != FALSE) {
-      if ($pg->username == $user->name && $i >= TOP_NUM) {
+      if (strcasecmp($pg->username, $user->name) == 0 && $i >= TOP_NUM) {
         $tail = sprintf("<tr><td colspan=4 style='text-align: center'> . . . . . . . . . . </td></tr>");
         $tail .= sprintf("<tr><td>%d</td><td>%s%s%s</td><td>%s</td><td>(%d/%d)</td></tr>", $i+1,
                          ($pg->username == $user->name ? "<b>" : ""), $pg->username, ($pg->username == $user->name ? "</b>" : ""), $pg->snormpts(), $pg->pts, $pg->gam);