Fixed a bug that prevented users from being listed

This commit is contained in:
Erik Thuning 2019-07-24 15:02:57 +02:00
parent f637d42383
commit 76eb90e643

@ -113,7 +113,9 @@ class User {
}
public function get_loans($type = 'both') {
$statement = "select `id` from `event` where
$statement = "select `id` from `event`
left join `loan` on `event`.`id` = `loan`.`event`
where
`type`='loan' and `user`=?";
switch($type) {
case 'active':