diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-09-05 14:47:46 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-09-05 14:47:46 +0200 |
| commit | 4db193c7f7188fe7f5ec64cf758cf2f26f38f96d (patch) | |
| tree | 942ad947842147586512622fc090f7e561d24122 /app/controllers/consultation/admin.php | |
| parent | 31c795a98b14037fcfb1b6f176ebd5f813b292fc (diff) | |
use Request::has()tic-4587
Diffstat (limited to 'app/controllers/consultation/admin.php')
| -rw-r--r-- | app/controllers/consultation/admin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index 2387775..f64c651 100644 --- a/app/controllers/consultation/admin.php +++ b/app/controllers/consultation/admin.php @@ -643,7 +643,7 @@ class Consultation_AdminController extends ConsultationController } elseif ($deleted > 0) { PageLayout::postSuccess(_('Die freien Termine wurden gelöscht')); } - } elseif (Request::option('delete') === 'cancel' && Request::submitted('reason')) { + } elseif (Request::option('delete') === 'cancel' && Request::has('reason')) { $reason = trim(Request::get('reason')); $deleted = 0; @@ -668,7 +668,7 @@ class Consultation_AdminController extends ConsultationController return; } } elseif (Request::submitted('cancel')) { - if (!Request::submitted('reason')) { + if (!Request::has('reason')) { PageLayout::setTitle(_('Termine absagen')); $this->action = $this->bulk($page, $expired); $this->render_action('cancel_slots'); @@ -925,7 +925,7 @@ class Consultation_AdminController extends ConsultationController $index_time = $index; } - if (!Request::submitted("{$index}-date") || !Request::submitted("{$index_time}-time")) { + if (!Request::has("{$index}-date") || !Request::has("{$index_time}-time")) { throw new Exception("Date with index '{$index}' was not submitted properly"); } |
