Fix compatibility php7

This commit is contained in:
Laurent Destailleur 2019-05-08 00:09:01 +02:00
parent a45ffeecca
commit 9413f9ddfc

View File

@ -131,11 +131,16 @@ class Export
//print_r("$perm[0]-$perm[1]-$perm[2]<br>");
if (! empty($perm[2]))
{
$bool=$user->rights->$perm[0]->$perm[1]->$perm[2];
$a=$perm[0];
$b=$perm[1];
$c=$perm[2];
$bool=$user->rights->$a->$b->$c;
}
else
{
$bool=$user->rights->$perm[0]->$perm[1];
$a=$perm[0];
$b=$perm[1];
$bool=$user->rights->$a->$b;
}
if ($perm[0]=='user' && $user->admin) $bool=true;
if (! $bool) break;