suche nach name, nicht id

This commit is contained in:
2024-01-18 10:47:56 +01:00
parent 137c0f7550
commit b8f03d4321
2 changed files with 5 additions and 5 deletions

View File

@@ -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];