From: Janusz Dobrowolski Date: Thu, 25 Feb 2010 21:16:29 +0000 (+0000) Subject: Error message displayed when no report file is found. X-Git-Tag: v2.4.2~19^2~944 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=7286bbfc939360b0fcb573ae075b2b8e899d96c8;p=fa-stable.git Error message displayed when no report file is found. --- 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