suche nach name, nicht id
This commit is contained in:
@@ -18,8 +18,8 @@ class BenutzerController
|
||||
$this->db = new BenutzerModel();
|
||||
}
|
||||
|
||||
public function getBenutzer($id) {
|
||||
$result = $this->db->selectBenutzer($id);
|
||||
public function getBenutzer($name) {
|
||||
$result = $this->db->selectBenutzer($name);
|
||||
if ($id !== false) {
|
||||
if ($result)
|
||||
$result = $result[0];
|
||||
|
Reference in New Issue
Block a user