http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54459
Revision: 54459 Author: tparscal Date: 2009-08-05 16:38:08 +0000 (Wed, 05 Aug 2009) Log Message: ----------- Fixed bug that caused an undefined index error - now we check the key before checking value. Modified Paths: -------------- trunk/phase3/skins/Vector.php Modified: trunk/phase3/skins/Vector.php =================================================================== --- trunk/phase3/skins/Vector.php 2009-08-05 15:41:19 UTC (rev 54458) +++ trunk/phase3/skins/Vector.php 2009-08-05 16:38:08 UTC (rev 54459) @@ -418,7 +418,7 @@ 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"'; } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs