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;