Menu

#2 php 5.2 warning about $folders array

Version_1.6.x
open
nobody
None
5
2007-01-18
2007-01-18
Joe Bordes
No

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

Discussion


Log in to post a comment.