diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2018-05-12 13:35:11 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2018-05-12 13:35:11 +0200 |
commit | 4b8b2e3eb139518ea1abd5875135bb39a9f0c187 (patch) | |
tree | a522f7fc813dcb628be43518776ae96439f070e6 /web/template/account_edit_form.php | |
parent | 8838490665c1bc7f682a4853be18c2b758328fb0 (diff) | |
download | aur-4b8b2e3eb139518ea1abd5875135bb39a9f0c187.tar.gz aur-4b8b2e3eb139518ea1abd5875135bb39a9f0c187.tar.xz |
Stop using each()
The each() function has been deprecated as of PHP 7.2.0. Use foreach
loops instead.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template/account_edit_form.php')
-rw-r--r-- | web/template/account_edit_form.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php index 833e74a8..6eff81bd 100644 --- a/web/template/account_edit_form.php +++ b/web/template/account_edit_form.php @@ -122,7 +122,7 @@ <select name="L" id="id_language"> <?php reset($SUPPORTED_LANGS); - while (list($code, $lang) = each($SUPPORTED_LANGS)) { + foreach ($SUPPORTED_LANGS as $code => $lang) { if ($L == $code) { print "<option value=\"".$code."\" selected=\"selected\"> ".$lang."</option>"."\n"; } else { @@ -137,7 +137,7 @@ <select name="TZ" id="id_timezone"> <?php $timezones = generate_timezone_list(); - while (list($key, $val) = each($timezones)) { + foreach ($timezones as $key => $val) { if ($TZ == $key) { print "<option value=\"".$key."\" selected=\"selected\"> ".$val."</option>\n"; } else { |