Replace obsoletes (PHP 7.2) each() by foreach()
This commit is contained in:
parent
4a1eb26eaa
commit
9a5b1c1feb
2 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ class fastdomain_handler
|
|||
{
|
||||
reset($r['domain']['nserver']);
|
||||
$endnserver = false;
|
||||
while (list($key, $val) = each($r['domain']['nserver']))
|
||||
foreach ($r['domain']['nserver'] as $key => $val)
|
||||
{
|
||||
if ($val == '=-=-=-=')
|
||||
unset($r['domain']['nserver'][$key]);
|
||||
|
|
|
@ -355,7 +355,7 @@ foreach ($rawdata as $key => $val)
|
|||
$disok = false;
|
||||
reset($items);
|
||||
|
||||
while (list($match, $field)=each($items))
|
||||
foreach ($items as $match => $field)
|
||||
{
|
||||
$pos = strpos($val,$match);
|
||||
|
||||
|
@ -624,7 +624,7 @@ if ($extra_items)
|
|||
$items = $extra_items;
|
||||
}
|
||||
|
||||
while (list($key,$val)=each($array))
|
||||
foreach ($array as $key => $val)
|
||||
{
|
||||
$ok=true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue