Page Edit: Fix PHP 7.4 compatibility

This commit is contained in:
veselcraft 2022-11-16 18:40:37 +03:00
parent f420d2381d
commit d33a8f5c1d
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -94,7 +94,7 @@
</td>
<td>
<select name="marialstatus">
<option n:foreach="range(0, 8) as $i" n:attr="selected: ($user->getMaritalStatus() == $i)" value="{$i}">
<option n:foreach="range(0, 8) as $i" n:attr="selected => ($user->getMaritalStatus() == $i)" value="{$i}">
{if $user->isFemale()}
{var $str = "relationship_$i"}
{if tr($str . "_fem") == ("@$str" . "_fem")}