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

--- Comment #1 from Sam Reed (reedy) <s...@reedyboy.net> ---
At a quick glance, just an empty array should work...

        if ( array_key_exists( 'autocomplete-messages', $this->mParams ) ) {
            foreach ( $this->mParams['autocomplete-messages'] as $key => $value
) {
                $key = $this->msg( $key )->plain();
                $this->autocomplete[$key] = strval( $value );
            }
        } elseif ( array_key_exists( 'autocomplete', $this->mParams ) ) {
            foreach ( $this->mParams['autocomplete'] as $key => $value ) {
                $this->autocomplete[$key] = strval( $value );
            }
        }
        if ( !is_array( $this->autocomplete ) || !$this->autocomplete ) {
            throw new MWException( 'HTMLAutoCompleteSelectField called without
any autocompletions' );
        }


MWOAuthUtils::getAllWikiNames() always returns an array (even if empty)...

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

Reply via email to