From 1e358e1a3700e30942dc7efe42e5a373a18d6422 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Wed, 5 Aug 2009 16:38:08 +0000 Subject: [PATCH] Fixed bug that caused an undefined index error - now we check the key before checking value. --- skins/Vector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins/Vector.php b/skins/Vector.php index cc586550ae..517b0811bd 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -418,7 +418,7 @@ class VectorTemplate extends QuickTemplate { foreach ( $this->data['personal_urls'] as $key => $item) { $this->data['personal_urls'][$key]['attributes'] = ' id="' . Sanitizer::escapeId( "pt-$key" ) . '"'; - if ( $item['active'] ) { + if ( isset( $item['active'] ) && $item['active'] ) { $this->data['personal_urls'][$key]['attributes'] .= ' class="active"'; } -- 2.20.1