Fixed a bug that prevented users from being listed
This commit is contained in:
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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user