r35992 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35991‎ | r35992 | r35993 >
Date:13:12, 7 June 2008
Author:rotem
Status:old
Tags:
Comment:
Avoid notice.
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuthHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthHooks.php
@@ -355,7 +355,7 @@
356356 // The user can log in via Special:UserLogin to bypass the blacklist and get a proper
357357 // error message.
358358 $session = CentralAuthUser::getSession();
359 - if ( in_array( wfWikiID(), (array)$session['auto-create-blacklist'] ) ) {
 359+ if ( isset( $session['auto-create-blacklist'] ) && in_array( wfWikiID(), (array)$session['auto-create-blacklist'] ) ) {
360360 wfDebug( __METHOD__.": blacklisted by session\n" );
361361 return false;
362362 }

Status & tagging log