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

--- Comment #3 from Sam Reed (reedy) <s...@reedyboy.net> ---
(In reply to comment #2)
> At a quick glance, this is apparently already guarded against (in master at
> least)
> 
>         if ( $common !== false ) {
>             foreach ( $common as $key => $value ) {
>                 $fileMetadata[$key] = array(
>                     'value' => $value,
>                     'source' => 'file-metadata',
>                 );
>             }

Ignore that

getHandler can return false


    /**
     * Like getMetadata but returns a handler independent array of common
values.
     * @see MediaHandler::getCommonMetaArray()
     * @return array|bool Array or false if not supported
     * @since 1.23
     */
    public function getCommonMetaArray() {
        $handler = $this->getHandler();

        return $handler->getCommonMetaArray( $this );
    }

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