php 5.2 warning about $folders array
Brought to you by:
cbruyland
Hi,
On line 773 in the script includes/mailaccess/imapext.php I was getting a php warning about passing a non array to the array_values() function.
Following a comment above this line about this error I added a typ-cast to the line:
-----------------------
$folders[$i]->name = imap_utf7_decode($folders[$i]->name);
}
- $folders = array_values($folders);
+ $folders = array_values((array)$folders);
foreach ($folders as $folder) {
-----------------------
If that helps anybody else.
Regards, Joe
TSolucio