Fixed bug that caused an undefined index error - now we check the key before checking...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Wed, 5 Aug 2009 16:38:08 +0000 (16:38 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Wed, 5 Aug 2009 16:38:08 +0000 (16:38 +0000)
skins/Vector.php

index cc58655..517b081 100644 (file)
@@ -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"';
                        }