diff --git a/userpix/index.php b/userpix/index.php
index 72d75ea47f685..bb5f349815073 100644
--- a/userpix/index.php
+++ b/userpix/index.php
@@ -23,7 +23,7 @@
foreach ($users as $user) {
$fullname = fullname($user);
- echo "wwwroot/user/view.php?id=$user->id&course=1\"".
+ echo "wwwroot/user/view.php?id=$user->id&course=1\" ".
"title=\"$fullname\">";
if ($CFG->slasharguments) { // Use this method if possible for better caching
echo '