diff --git a/src/Rent/RentSystemQR.php b/src/Rent/RentSystemQR.php index b93806a..e0aee03 100644 --- a/src/Rent/RentSystemQR.php +++ b/src/Rent/RentSystemQR.php @@ -23,6 +23,7 @@ public function returnBike($userId, $bikeId, $standName, $note = '', $force = fa $result = $this->db->query("SELECT bikeNum FROM bikes WHERE currentUser=$userId ORDER BY bikeNum"); $bikeNumber = $result->rowCount(); + $bikeId = $result->fetchAssoc()['bikeNum']; if ($bikeNumber > 1) { $message = _('You have') . ' ' . $bikeNumber . ' '