https://bugzilla.wikimedia.org/show_bug.cgi?id=37195
Web browser: --- Bug #: 37195 Summary: CategoryViewer has $from defined as String but is used later as array Product: MediaWiki Version: 1.20-git Platform: All OS/Version: All Status: NEW Severity: minor Priority: Unprioritized Component: Categories AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: e...@wikia.com CC: bawolff...@gmail.com Classification: Unclassified Mobile Platform: --- definition of constructor from CategoryViewer.php: function __construct( $title, IContextSource $context, $from = '', $until = '', $query = array() ) { [...] } but later in function doCategoryQuery: [...] if ( $this->from[$type] !== null ) { [...] and in private function getSectionPagingLinks( $type ): [...] } elseif ( $this->nextPage[$type] !== null || $this->from[$type] !== null ) { [...] Parameter "from" should be probably defined in constructor as empty array() and/or later in code added to some is_array() condition. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l