From fa975fc775dd1ce34179eb0e406ae48720ab6607 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 16 Jan 2020 20:58:33 +0000 Subject: [PATCH] Delegations now work again --- src/Module/Settings/Delegation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Settings/Delegation.php b/src/Module/Settings/Delegation.php index a8f203fcae..283753d126 100644 --- a/src/Module/Settings/Delegation.php +++ b/src/Module/Settings/Delegation.php @@ -28,7 +28,7 @@ class Delegation extends BaseSettingsModule BaseModule::checkFormSecurityTokenRedirectOnError('settings/delegation', 'delegate'); - $parent_uid = $_POST['parent_user'] ?? 0; + $parent_uid = (int)$_POST['parent_user'] ?? 0; $parent_password = $_POST['parent_password'] ?? ''; if ($parent_uid != 0) {