diff options
| author | Marina Glancy <marina@moodle.com> | 2017-10-03 15:37:33 +0800 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2017-11-25 17:46:05 +0100 |
| commit | d9cc6c66ec08e5a517f8fa4503345ead992e2a62 (patch) | |
| tree | 5f3e8a0b61edad4e52daf3381168b1b26acb627c /toexport.inc.php | |
| parent | 7a253151829845bb1e532345d3d42d5184dc1bd3 (diff) | |
| download | adodb-d9cc6c66ec08e5a517f8fa4503345ead992e2a62.tar.gz adodb-d9cc6c66ec08e5a517f8fa4503345ead992e2a62.tar.bz2 adodb-d9cc6c66ec08e5a517f8fa4503345ead992e2a62.zip | |
Replace each() with foreach for PHP7.2 compatibility
Diffstat (limited to 'toexport.inc.php')
| -rw-r--r-- | toexport.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toexport.inc.php b/toexport.inc.php index 97b171cf..70f4e6dc 100644 --- a/toexport.inc.php +++ b/toexport.inc.php @@ -77,7 +77,7 @@ function _adodb_export(&$rs,$sep,$sepreplace,$fp=false,$addtitles=true,$quote = reset($fieldTypes); $i = 0; $elements = array(); - while(list(,$o) = each($fieldTypes)) { + foreach ($fieldTypes as $o) { $v = ($o) ? $o->name : 'Field'.($i++); if ($escquote) $v = str_replace($quote,$escquotequote,$v); |
