Skip to content

Commit

Permalink
Fixing PHP 7.4 compatibility issue #386
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanaktion committed Apr 21, 2020
1 parent 3829ab2 commit aa1759e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/view/admin/users/edit.html
Expand Up @@ -62,7 +62,7 @@
<label for="rank" class="col-lg-2 control-label label-sm">{{ @dict.rank }}</label>
<div class="col-lg-10">
<select class="form-control input-sm" id="rank" name="rank">
<repeat group="{{ @user.rank >= \Model\User::RANK_SUPER ? range(0, 5) : range(0, 4) }}" value="{{ @rank }}">
<repeat group="{{ (@user.rank >= \Model\User::RANK_SUPER ? range(0, 5) : range(0, 4)) }}" value="{{ @rank }}">
<option value="{{ @rank }}" {{ (empty(@this_user) && @rank == \Model\User::RANK_USER || @@this_user.rank == @rank) ? "selected" : "" }}>{{ @dict.ranks[@rank] }} &mdash; {{ @dict.rank_permissions[@rank] }}</option>
</repeat>
</select>
Expand Down

0 comments on commit aa1759e

Please sign in to comment.