From 9ee3387379d45155ff448e312a7ee0b76101b2ff Mon Sep 17 00:00:00 2001 From: fgorsky Date: Wed, 3 May 2017 12:35:29 +0300 Subject: [PATCH] Critical download bug fixed --- controllers/DefaultController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/DefaultController.php b/controllers/DefaultController.php index b67623a..195c42c 100644 --- a/controllers/DefaultController.php +++ b/controllers/DefaultController.php @@ -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;