[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-554-g2551aae

Shawn Moore sartak at bestpractical.com
Tue Aug 24 21:40:06 EDT 2010


The branch, 3.9-trunk has been updated
       via  2551aae84d6098f583dcc31b91a92961107ee786 (commit)
      from  8aa0a336fba54b1f78f69d295f523745e853370c (commit)

Summary of changes:
 lib/RT/Scrip_Overlay.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 2551aae84d6098f583dcc31b91a92961107ee786
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Aug 24 21:42:28 2010 -0400

    If there's no code then don't bother compile-checking it

diff --git a/lib/RT/Scrip_Overlay.pm b/lib/RT/Scrip_Overlay.pm
index b9f4422..3c5079f 100755
--- a/lib/RT/Scrip_Overlay.pm
+++ b/lib/RT/Scrip_Overlay.pm
@@ -625,6 +625,7 @@ sub CompileCheck {
 
     for my $method (qw/CustomPrepareCode CustomCommitCode CustomIsApplicableCode/) {
         my $code = $self->$method;
+        next if !defined($code);
 
         do {
             no strict 'vars';

-----------------------------------------------------------------------


More information about the Rt-commit mailing list