X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.profile.php;h=340e9adccb049f41624269b022e188725ab34e3a;hb=b75ef9b2a5d7a0c09fa9aeac0738f4d27399e4c1;hp=be02e7b88c21e529f17987a1630ce0f58b302155;hpb=4f247453ac4a734953df893117b72168c60dd22e;p=platal.git diff --git a/plugins/function.profile.php b/plugins/function.profile.php index be02e7b..340e9ad 100644 --- a/plugins/function.profile.php +++ b/plugins/function.profile.php @@ -1,6 +1,6 @@ b('link', true); $with_groupperms = $params->b('groupperms', true); $user = $params->v('user'); - if (ctype_digit($user)) { + if (is_int($user) || ctype_digit($user)) { $user = User::getWithUID($user); }