https://bugzilla.wikimedia.org/show_bug.cgi?id=40861

       Web browser: ---
             Bug #: 40861
           Summary: SkinTemplate's menu generating functions should fill
                    up all indices they might ever provide with nulls
           Product: MediaWiki
           Version: 1.21-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I've run into this issue with $this->data['content_navigation']; see bug 40857.

These functions should fill up all indices they might ever provide with nulls
instead of leaving them undefined.

Rationale:
a) undefined values force the caller to check everything with isset(), which is
butt-ugly.
b) these values are not undefined; they are defined perfectly well, to be
non-existent (or empty, or in other words null) for given page-view-user
combination.

-- 
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

Reply via email to