Skip to content

Commit

Permalink
fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneld committed May 26, 2024
1 parent b13bbe3 commit f3caef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rent/AbstractRentSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function returnBike($userId, $bikeId, $standName, $note = '', $force = fa
} else {
$result = $this->db->query("SELECT note FROM notes WHERE bikeNum=$bikeNum AND deleted IS NULL ORDER BY time DESC LIMIT 1");
$row = $result->fetchAssoc();
$note = $row["note"];
$note = $row["note"] ?? '';
}

$message = '<h3>' . _('Bike') . ' ' . $bikeNum . ' ' . _('returned to stand') . ' ' . $stand . ' : <span class="label label-primary">' . _('Lock with code') . ' ' . $currentCode . '.</span></h3>';
Expand Down

0 comments on commit f3caef4

Please sign in to comment.