From: Trevor Parscal Date: Wed, 5 Aug 2009 16:38:08 +0000 (+0000) Subject: Fixed bug that caused an undefined index error - now we check the key before checking... X-Git-Tag: 1.31.0-rc.0~40478 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=1e358e1a3700e30942dc7efe42e5a373a18d6422;p=lhc%2Fweb%2Fwiklou.git Fixed bug that caused an undefined index error - now we check the key before checking value. --- 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"'; }