summaryrefslogtreecommitdiff
path: root/src/application/actions/lookupuser
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/actions/lookupuser')
-rw-r--r--src/application/actions/lookupuser/get.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/application/actions/lookupuser/get.php b/src/application/actions/lookupuser/get.php
index 74143f4..a7ed215 100644
--- a/src/application/actions/lookupuser/get.php
+++ b/src/application/actions/lookupuser/get.php
@@ -2,7 +2,11 @@
use mystic\forum\orm\User;
-$userHandle = $_GET["handle"] ?? throw new Exception(__("Missing handle"));
+$userHandle = $_GET["handle"] ?? call_user_func(function() {
+ http_response_code(400);
+ msg_error(__("Missing handle"));
+ exit;
+});
$user = new User();
$user->name = $userHandle;