Skip to content

Commit

Permalink
Critical download bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fgh151 committed May 3, 2017
1 parent 53b545b commit 9ee3387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function actionDownload($id = null)
$list = $this->getFileList();
$file = $list[$id];
$this->updateMenuItems();
if (null === $file) {
if (null !== $file) {
$sqlFile = $this->path . basename($file);
if (file_exists($sqlFile)) {
$request = Yii::$app->response;
Expand Down

0 comments on commit 9ee3387

Please sign in to comment.