staff usernames on PM notes to link to PM composition, not edit user.
This commit is contained in:
parent
68acbb8821
commit
03a946614f
5
mod.php
5
mod.php
|
@ -2486,10 +2486,7 @@
|
||||||
$_query->bindValue(':id', $note['mod']);
|
$_query->bindValue(':id', $note['mod']);
|
||||||
$_query->execute() or error(db_error($_query));
|
$_query->execute() or error(db_error($_query));
|
||||||
if($_mod = $_query->fetch()) {
|
if($_mod = $_query->fetch()) {
|
||||||
if(hasPermission($config['mod']['editusers']))
|
$staff = '<a href="?/new_PM/' . $note['mod'] . '">' . utf8tohtml($_mod['username']) . '</a>';
|
||||||
$staff = '<a href="?/users/' . $note['mod'] . '">' . utf8tohtml($_mod['username']) . '</a>';
|
|
||||||
else
|
|
||||||
$staff = utf8tohtml($_mod['username']);
|
|
||||||
} else {
|
} else {
|
||||||
$staff = '<em>???</em>';
|
$staff = '<em>???</em>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue