summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 3a7a02a..17478d9 100755
--- a/index.php
+++ b/index.php
@@ -93,7 +93,7 @@ if (isset($date)) {
if (count($users) > 0) {
echo ' <style type="text/css">'.PHP_EOL;
foreach ($users as $user) {
- echo ' span.user_'.$user.' { '.get_color($user).'; }'.PHP_EOL;
+ echo ' span.user_'.str_replace('|', '_', $user).' { '.get_color($user).'; }'.PHP_EOL;
}
echo ' </style>'.PHP_EOL;
}
@@ -145,7 +145,7 @@ if (isset($date)) {
<span class="caret"></span></a>
<ul class="dropdown-menu" id="usernames">'.PHP_EOL;
foreach ($users as $user) {
- echo ' <li id="user_'.$user.'"><span class="checkbox user_'.$user.'"><a href="javascript:addUser(\''.$user.'\');">'.$user.'</a></span></li>'.PHP_EOL;
+ echo ' <li id="user_'.$user.'"><span class="checkbox user_'.str_replace('|', '_', $user).'"><a href="javascript:addUser(\''.$user.'\');">'.$user.'</a></span></li>'.PHP_EOL;
}
echo ' </ul>
</li>