fixed multiple database queries
This commit is contained in:
@@ -10,6 +10,11 @@ class nick
|
||||
private $invis;
|
||||
private $user_data;
|
||||
|
||||
/**
|
||||
* nick constructor.
|
||||
* @param $playerId
|
||||
* @param int $showInvisibility
|
||||
*/
|
||||
public function __construct($playerId, $showInvisibility = 1) {
|
||||
if (!$this->user_data) {
|
||||
$user = db::c()->query('SELECT `login`, `level`, `hp`, `align`, `klan`, `hp`, `maxhp` FROM `users` WHERE `id` = ?i',$playerId)->fetch_assoc();
|
||||
|
||||
Reference in New Issue
Block a user