php notice fixe
This commit is contained in:
parent
28f21f1797
commit
f5a36bcee1
@ -85,8 +85,8 @@ function popsu_preprocess_views_view_field(&$variables){
|
|||||||
|
|
||||||
// add new classes to the url (without overwriting existing once)
|
// add new classes to the url (without overwriting existing once)
|
||||||
$options = $url->getOptions();
|
$options = $url->getOptions();
|
||||||
if($attributes = $options['attributes']){
|
if(isset($options['attributes']) && $attributes = $options['attributes']){
|
||||||
if($classes = $attributes['class']){
|
if(isset($attributes['class']) && $classes = $attributes['class']){
|
||||||
$attributes['class'] += $new_classes;
|
$attributes['class'] += $new_classes;
|
||||||
}else{
|
}else{
|
||||||
$attributes['class'] = $new_classes;
|
$attributes['class'] = $new_classes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user