[freeside-commits] branch master updated. 9f88c61407594e6c60226b607cc610b7cbde8953

Ivan ivan at 420.am
Sat Dec 1 08:08:06 PST 2012


The branch, master has been updated
       via  9f88c61407594e6c60226b607cc610b7cbde8953 (commit)
      from  1e7597b555b007372810e576ce83ad192d803888 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9f88c61407594e6c60226b607cc610b7cbde8953
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Dec 1 08:08:04 2012 -0800

    eliminate Argument "" isn't numeric in numeric le (<=) warning

diff --git a/FS/FS/part_event/Condition/pkg_dundate.pm b/FS/FS/part_event/Condition/pkg_dundate.pm
index f25db2a..fefee20 100644
--- a/FS/FS/part_event/Condition/pkg_dundate.pm
+++ b/FS/FS/part_event/Condition/pkg_dundate.pm
@@ -19,7 +19,7 @@ sub condition {
 
   #my $cust_main = $self->cust_main($cust_pkg);
 
-  $cust_pkg->dundate <= $opt{time};
+  ( $cust_pkg->dundate || 0 ) <= $opt{time};
 
 }
 

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

Summary of changes:
 FS/FS/part_event/Condition/pkg_dundate.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list