https://bugzilla.wikimedia.org/show_bug.cgi?id=32808
Web browser: ---
Bug #: 32808
Summary: NetworkAuth: $u is undefined
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: [other]
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 9614
--> https://bugzilla.wikimedia.org/attachment.cgi?id=9614
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l