Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -241,7 +241,7 @@ |
242 | 242 | # Note that this is independent from the message 'filewasdeleted' that requires JS |
243 | 243 | $desiredTitleObj = Title::newFromText( $this->mDesiredDestName, NS_FILE ); |
244 | 244 | $delNotice = ''; // empty by default |
245 | | - if ( !$desiredTitleObj->exists() ) { |
| 245 | + if ( $desiredTitleObj instanceof Title && !$desiredTitleObj->exists() ) { |
246 | 246 | LogEventsList::showLogExtract( &$delNotice, array( 'delete', 'move' ), |
247 | 247 | $desiredTitleObj->getPrefixedText(), |
248 | 248 | '', array( 'lim' => 10, |