From: Ian Baker Date: Mon, 15 Aug 2011 18:19:54 +0000 (+0000) Subject: checking for existence of mLocalFile in stashFile() was inverted X-Git-Tag: 1.31.0-rc.0~28255 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=6410788a465671d1320745c110e563e4f1faceec;p=lhc%2Fweb%2Fwiklou.git checking for existence of mLocalFile in stashFile() was inverted followup to r94536 --- diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php index ce0bc8c906..8ea921935a 100644 --- a/includes/upload/UploadFromStash.php +++ b/includes/upload/UploadFromStash.php @@ -103,7 +103,7 @@ class UploadFromStash extends UploadBase { * There is no need to stash the image twice */ public function stashFile( $key = null ) { - if ( !$this->mLocalFile ) { + if ( $this->mLocalFile ) { return $this->mLocalFile; } return parent::stashFile( $key );