Index: trunk/extensions/MultiUpload/MultiUpload.body.php |
— | — | @@ -255,9 +255,14 @@ |
256 | 256 | * @param $message String |
257 | 257 | */ |
258 | 258 | protected function showUploadError( $message ) { |
259 | | - $this->mErrors[] = '<ul><li>' . |
260 | | - $this->mLocalFile->getTitle()->getFullText() . ':' . |
261 | | - $message . "</li></ul>\n"; |
| 259 | + $err ='<ul><li>'; |
| 260 | + $file = $this->mLocalFile; |
| 261 | + if ($file) |
| 262 | + $t = $this->mLocalFile->getTitle(); |
| 263 | + if ($t) |
| 264 | + $err .= $t->getFullText() . ":"; |
| 265 | + $err .= $message . "</li></ul>\n"; |
| 266 | + $this->mErrors[] = $err; |
262 | 267 | } |
263 | 268 | |
264 | 269 | /** |