1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

PHP8 Compatibility Fixes

This commit is contained in:
Cameron
2020-12-04 17:21:03 -08:00
parent 9b82308021
commit 645c05cfbf
4 changed files with 5 additions and 4 deletions

View File

@@ -501,8 +501,9 @@
} }
while(list($tKey, $tMarker) = each($this->aTimeMarks)) foreach($this->aTimeMarks as $tKey => $tMarker)
{ {
if(!$bRowHeaders) if(!$bRowHeaders)
{ {
// First time: emit headers // First time: emit headers

View File

@@ -1036,7 +1036,7 @@ class e_parse extends e_parser
if (in_array(substr($lvalue, 1), $nobreak)) if (in_array(substr($lvalue, 1), $nobreak))
{ {
reset($innbk); reset($innbk);
while (list($key, $tag) = each($innbk)) foreach($innbk as $key=>$tag)
{ {
if (substr($lvalue, 1) == $tag) if (substr($lvalue, 1) == $tag)
{ {

View File

@@ -111,7 +111,7 @@ class receiveMail
} }
if($structure->type == 1) /* multipart */ if($structure->type == 1) /* multipart */
{ {
while(list($index, $sub_structure) = each($structure->parts)) foreach($structure->parts as $index => $sub_structure)
{ {
if($part_number) if($part_number)
{ {

View File

@@ -159,7 +159,7 @@ class pop3BounceHandler
} }
if($structure->type == 1) /* multipart */ if($structure->type == 1) /* multipart */
{ {
while(list($index, $sub_structure) = each($structure->parts)) foreach($structure->parts as $index => $sub_structure)
{ {
if($part_number) if($part_number)
{ {