diff --git a/modules/user.mod.php b/modules/user.mod.php index 88bb29e..5887685 100644 --- a/modules/user.mod.php +++ b/modules/user.mod.php @@ -17,13 +17,12 @@ User SELECT * FROM - user + users WHERE id = $id"; $result = $GLOBALS['__db_connection'] -> query ($sql) or die ("db_select error $sql"); - - $row = $this -> db -> fetch_array ($result); + $row = $result -> fetch_array (); $self = new Self; $self -> id = $id;