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

Sam Reed (reedy) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Unprioritized               |Low

--- Comment #1 from Sam Reed (reedy) <[email protected]> ---
            foreach ( $threads as $t ) {
                NewMessages::markThreadAsReadByUser( $t, $user );
                $result[] = array(
                    'result' => 'Success',
                    'action' => 'markread',
                    'id' => $t->id(),
                    'title' => $t->title()->getPrefixedText()
                );
            }
-----

    function title() {
        if ( is_object( $this->root() ) ) {
            return $this->root()->getTitle();
        } else {
            // wfWarn( "Thread ".$this->id()." has no title." );
            return null;
        }
    }

-----

title() can and will return null.

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