mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Refactor each() function to foreach()
The each() function has been deprecated since PHP 7.2 and shouldn't be used anymore: - http://php.net/manual/en/function.each.php
This commit is contained in:
@@ -302,7 +302,7 @@ if (isset($_POST['maillist'])) {
|
||||
function output_lists_table($mailing_lists)
|
||||
{
|
||||
echo '<table cellpadding="5" border="0" class="standard mailing-lists">', "\n";
|
||||
while ( list(, $listinfo) = each($mailing_lists)) {
|
||||
foreach ($mailing_lists as $listinfo) {
|
||||
if (!is_array($listinfo)) {
|
||||
echo "<tr><th>{$listinfo}</th><th>Moderated</th><th>Archive</th>" .
|
||||
"<th>Newsgroup</th><th>Normal</th><th>Digest</th></tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user