$params = array_filter(explode('|', $params));
if ($params) {
- list(, $soustype) = each($params);
+ $soustype = current($params);
$soustype = strtolower(trim($soustype));
- if (in_array($soustype,
- array('left', 'right', 'center', 'ajax'))) {
- list(, $soustype) = each($params);
+ if (in_array($soustype, array('left', 'right', 'center', 'ajax'))) {
+ $soustype = next($params);
$soustype = strtolower($soustype);
}