mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
8838490665
commit
4b8b2e3eb1
11 changed files with 29 additions and 29 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue