mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 13:27:05 +02:00
Replaced most each() calls with foreach() in preparation to support php 8
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -103,7 +103,7 @@ function saveMessages($storage, $folder = '', $num = 0) {
|
||||
|
||||
$messages = $storage->piler_batch_fetch(1, $num);
|
||||
|
||||
while(list($k, $v) = each($messages)) {
|
||||
foreach($messages as $k => $v) {
|
||||
$uuid = $storage->getUniqueId($k);
|
||||
|
||||
$tmpname = "piler-" . $username . "-" . $folder . "-" . $k . "-" . $uuid . ".eml";
|
||||
|
Reference in New Issue
Block a user