reg/select-domain.inc.php: fix operator precedence
This commit is contained in:
parent
94fd035010
commit
8624262482
1 changed files with 1 additions and 1 deletions
|
@ -7,6 +7,6 @@ $user_domains = regListUserDomains();
|
|||
if (!in_array($_POST['domain'] ?? NULL, $user_domains, true))
|
||||
echo ' <option value="" disabled="" selected="">—</option>' . LF;
|
||||
foreach ($user_domains as $domain)
|
||||
echo ' <option value="' . $domain . '"' . (($_POST['domain'] ?? NULL === $domain) ? ' selected=""' : '') . '>' . $domain . '</option>' . LF;
|
||||
echo ' <option value="' . $domain . '"' . ((($_POST['domain'] ?? NULL) === $domain) ? ' selected=""' : '') . '>' . $domain . '</option>' . LF;
|
||||
?>
|
||||
</select>
|
||||
|
|
Loading…
Reference in a new issue