Author: olaf
Description:
Patch to fix the bug.
When error reporting is turned on and I use the NetworkAuth extension, I get the following warning:
Notice: Undefined variable: u in (...)/extensions/NetworkAuth/NetworkAuth.php on line 123
As noted on the extensions talk page by user 朝彦 (Asahiko):
http://www.mediawiki.org/wiki/Extension_talk:NetworkAuth
this is caused by the usage of the function is_null($u) to check whether the variable $u contains something useful. However, when $u is not defined, this causes the warning. The solution is to replace is_null($u) by !isset($u).
I have attached a patch for NetworkAuth.php to solve the problem.
Version: unspecified
Severity: minor
URL: http://www.mediawiki.org/wiki/Extension_talk:NetworkAuth
attachment isset.patch ignored as obsolete