diff --git a/class/displayManager.Class.php b/class/displayManager.Class.php index 6f596a4..6759976 100644 --- a/class/displayManager.Class.php +++ b/class/displayManager.Class.php @@ -861,14 +861,14 @@ public function download_statement($data){ }else{ /* else only currently logged in user statement is available */ $this->secure('self'); - if (!$this->user->statement_downloaded){ + if ($this->user->statement_downloaded!=1){ $this->user->getStatementFileContents(); }else{ HTTP::redirect('/'); } } }catch (FileException $e){ - echo $e->getMessage(); + echo ($e->getMessage()); die(); } }