From 88d835d777a3228f429da6eab63f8572f09353bc Mon Sep 17 00:00:00 2001 From: Jacek Date: Thu, 5 Dec 2013 15:28:31 +0100 Subject: [PATCH] exceptions --- class/displayManager.Class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }