bad number rights on badge tabs

This commit is contained in:
BENKE Charlie 2016-12-10 23:29:43 +01:00 committed by GitHub
parent 3fc8e2cf4c
commit 35107f1dbf

View File

@ -87,7 +87,7 @@ $object = new User($db);
if ($id > 0 || ! empty($ref))
{
$result = $object->fetch($id, $ref);
$object->getrights();
$entitytouseforuserdir = $object->entity;
if (empty($entitytouseforuserdir)) $entitytouseforuserdir=1;
$upload_dir = $conf->user->multidir_output[$entitytouseforuserdir] . "/" . $object->id ;