]> git.mxchange.org Git - friendica.git/commitdiff
Delegations now work again
authorMichael <heluecht@pirati.ca>
Thu, 16 Jan 2020 20:58:33 +0000 (20:58 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 16 Jan 2020 20:58:33 +0000 (20:58 +0000)
src/Module/Settings/Delegation.php

index a8f203fcae3e2aea2ca4ab86888153d7858f2162..283753d126e9e50131bf53459b355fca11b81cdc 100644 (file)
@@ -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) {