Skip to content

Commit

Permalink
Fix compatiblity with new version of PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 10, 2018
1 parent f694939 commit 8893d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/exports/class/export.class.php
Expand Up @@ -131,11 +131,11 @@ function load_arrays($user,$filter='')
//print_r("$perm[0]-$perm[1]-$perm[2]<br>");
if (! empty($perm[2]))
{
$bool=$user->rights->$perm[0]->$perm[1]->$perm[2];
$bool=$user->rights->{$perm[0]}->{$perm[1]}->{$perm[2]};
}
else
{
$bool=$user->rights->$perm[0]->$perm[1];
$bool=$user->rights->{$perm[0]}->{$perm[1]};
}
if ($perm[0]=='user' && $user->admin) $bool=true;
if (! $bool) break;
Expand Down

0 comments on commit 8893d8d

Please sign in to comment.