From 7286bbfc939360b0fcb573ae075b2b8e899d96c8 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 25 Feb 2010 21:16:29 +0000 Subject: [PATCH] Error message displayed when no report file is found. --- reporting/prn_redirect.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reporting/prn_redirect.php b/reporting/prn_redirect.php index 3f38f708..b228273d 100644 --- a/reporting/prn_redirect.php +++ b/reporting/prn_redirect.php @@ -88,7 +88,10 @@ if (!isset($_POST['REP_ID'])) { // print link clicked $rep = $_POST['REP_ID']; $rep_file = find_report_file($rep); -require($rep_file); +if ($rep_file) + require($rep_file); +else + display_error("Cannot find report file '$rep'"); exit(); ?> \ No newline at end of file -- 2.30.2