Whitespace cleanup

This commit is contained in:
Erik Thuning 2022-07-19 15:48:35 +02:00
parent 396a3f067e
commit a16e5f2479
2 changed files with 5 additions and 5 deletions

@ -44,7 +44,7 @@ class Event {
$event_id = $insert->insert_id;
return new Event($event_id);
}
public function __construct($id) {
$search = prepare('select `id` from `event`
where `id`=?');
@ -57,7 +57,7 @@ class Event {
$this->id = $result['id'];
$this->update_fields();
}
protected function update_fields() {
$get = prepare('select * from `event` where `id`=?');
bind($get, 'i', $this->id);
@ -83,7 +83,7 @@ class Event {
public function get_returntime() {
return $this->returntime;
}
public function is_active() {
if($this->returntime === null) {
return true;

@ -15,7 +15,7 @@ class Loan extends Event {
commit_trans();
return new Loan($event_id);
}
public function __construct($id) {
parent::__construct($id);
$search = prepare('select * from `loan` where `event`=?');
@ -27,7 +27,7 @@ class Loan extends Event {
}
$this->update_fields();
}
protected function update_fields() {
parent::update_fields();
$get = prepare('select * from `loan` where `event`=?');