summaryrefslogtreecommitdiff
path: root/includes/model
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model')
-rw-r--r--includes/model/EventConfig_model.php2
-rw-r--r--includes/model/ShiftsFilter.php9
-rw-r--r--includes/model/Shifts_model.php4
3 files changed, 1 insertions, 14 deletions
diff --git a/includes/model/EventConfig_model.php b/includes/model/EventConfig_model.php
index f5846870..112ad457 100644
--- a/includes/model/EventConfig_model.php
+++ b/includes/model/EventConfig_model.php
@@ -64,7 +64,7 @@ function EventConfig_update(
);
}
- return (bool)DB::update('
+ return DB::update('
UPDATE `EventConfig` SET
`event_name` = ?,
`buildup_start_date` = ?,
diff --git a/includes/model/ShiftsFilter.php b/includes/model/ShiftsFilter.php
index 47ef50d7..3b691b55 100644
--- a/includes/model/ShiftsFilter.php
+++ b/includes/model/ShiftsFilter.php
@@ -10,12 +10,6 @@ namespace Engelsystem;
class ShiftsFilter
{
/**
- * How long can the time interval be?
- * 86400 = one day
- */
- const MAX_DURATION = 86400;
-
- /**
* Shift is completely full.
*/
const FILLED_FILLED = 1;
@@ -98,9 +92,6 @@ class ShiftsFilter
*/
public function setEndTime($endTime)
{
- if ($endTime - $this->startTime > ShiftsFilter::MAX_DURATION) {
- $endTime = $this->startTime + ShiftsFilter::MAX_DURATION;
- }
$this->endTime = $endTime;
}
diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php
index b0269362..21abc888 100644
--- a/includes/model/Shifts_model.php
+++ b/includes/model/Shifts_model.php
@@ -266,10 +266,6 @@ function Shift_signup_allowed_angel(
) {
$free_entries = Shift_free_entries($needed_angeltype, $shift_entries);
- if ($user['Gekommen'] == 0) {
- return new ShiftSignupState(ShiftSignupState::SHIFT_ENDED, $free_entries);
- }
-
if ($user_shifts == null) {
$user_shifts = Shifts_by_user($user);
}