From: ivan Date: Wed, 30 May 2001 15:17:08 +0000 (+0000) Subject: use Apache inside an eval BLOCK was mucking things up for the non-mod_perl folks X-Git-Tag: Root-of-freeside_vpopmail_support~17 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=08cc56589e213542a72060234bdad49fbfeb67c2 use Apache inside an eval BLOCK was mucking things up for the non-mod_perl folks --- diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index 198477ce6..6078ad96b 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -121,13 +121,11 @@ Sends headers and an HTML error message, then exits. =cut sub eidiot { - #warn "eidiot depriciated"; + warn "eidiot depriciated"; idiot(@_); if (exists $ENV{MOD_PERL}) { - eval { - use Apache; - Apache::exit(); - }; + require Apache; + Apache::exit(); } else { exit; }