Fou-Lu Just wanted to get back to you, i know you said the next could not be used to return an object, i read the same thing on the doc site.
But i tried the other and it did not work, so i tried that just to see, and no more error. Really strange.
This is how it looks.. Just thought you might like to know the resolve on this..
$ret = array();
$res = $GLOBALS['fc_config']['cms']->getUsers();
foreach($res as $k=>$v)
$v['login'] = htmlentities(stripslashes($v['login'])); //sanitize
$ret[$v['id']] = $v;
}elseif($res instanceof Traversable)
while ($rec = $res->next())
$ret[$rec['id']] = $rec;