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/consultation_controller.php | |
| parent | 31c795a98b14037fcfb1b6f176ebd5f813b292fc (diff) | |
use Request::has()tic-4587
Diffstat (limited to 'app/controllers/consultation/consultation_controller.php')
| -rw-r--r-- | app/controllers/consultation/consultation_controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/consultation/consultation_controller.php b/app/controllers/consultation/consultation_controller.php index 00e10ad..ecdf6e4 100644 --- a/app/controllers/consultation/consultation_controller.php +++ b/app/controllers/consultation/consultation_controller.php @@ -13,9 +13,9 @@ abstract class ConsultationController extends AuthenticatedController parent::before_filter($action, $args); $type = 'person'; - if (Request::submitted('username')) { + if (Request::has('username')) { $this->range = User::findByUsername(Request::username('username')); - } elseif (Request::submitted('cid')) { + } elseif (Request::has('cid')) { $this->range = Context::get(); $type = 'object'; } else { |
