aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/consultation/consultation_controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/consultation/consultation_controller.php')
-rw-r--r--app/controllers/consultation/consultation_controller.php4
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 {