Error message displayed when no report file is found.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 25 Feb 2010 21:16:29 +0000 (21:16 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 25 Feb 2010 21:16:29 +0000 (21:16 +0000)
reporting/prn_redirect.php

index 3f38f70889b36319a98925fd7acdb193c485322a..b228273d3a2cbdd6788745265104893fb8ee3039 100644 (file)
@@ -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