From: Michael Date: Thu, 16 Jan 2020 20:58:33 +0000 (+0000) Subject: Delegations now work again X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa975fc775dd1ce34179eb0e406ae48720ab6607;p=friendica.git Delegations now work again --- 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) {