mirror of
https://github.com/e107inc/e107.git
synced 2025-06-25 18:33:12 +02:00
Add check to see if user ID exists before displaying profile
This commit is contained in:
3
user.php
3
user.php
@ -187,7 +187,8 @@ if (vartrue($records) > 30)
|
||||
|
||||
if (isset($id))
|
||||
{
|
||||
if ($id == 0)
|
||||
$user_exists = $sql->count("user","(*)", "WHERE user_id = ".$id."");
|
||||
if($id == 0 || $user_exists == false)
|
||||
{
|
||||
$text = "<div style='text-align:center'>".LAN_USER_49." ".SITENAME."</div>";
|
||||
$ns->tablerender(LAN_ERROR, $text);
|
||||
|
Reference in New Issue
Block a user