don't overwrite global $user...
This commit is contained in:
parent
b17fe7e7bd
commit
8448a4cee1
@ -260,9 +260,9 @@ class UserPage extends Extension {
|
||||
|
||||
$matches = array();
|
||||
if(preg_match("/^(poster|user)=(.*)$/i", $event->term, $matches)) {
|
||||
$user = User::by_name($matches[2]);
|
||||
if(!is_null($user)) {
|
||||
$user_id = $user->id;
|
||||
$duser = User::by_name($matches[2]);
|
||||
if(!is_null($duser)) {
|
||||
$user_id = $duser->id;
|
||||
}
|
||||
else {
|
||||
$user_id = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user