From: ivan Date: Tue, 31 Mar 2009 19:46:00 +0000 (+0000) Subject: fix impending billing notification for Pg 8.3's more strict type checking X-Git-Tag: root_of_svc_elec_features~1318 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8d6784828998dc848eede30cef4a38bfd30fc3d1 fix impending billing notification for Pg 8.3's more strict type checking --- diff --git a/FS/FS/Cron/notify.pm b/FS/FS/Cron/notify.pm index 23cf920b2..c67fcc19a 100644 --- a/FS/FS/Cron/notify.pm +++ b/FS/FS/Cron/notify.pm @@ -35,7 +35,7 @@ sub notify_flat_delay { and 0 < ( select count(*) from part_pkg_option where part_pkg.pkgpart = part_pkg_option.pkgpart and part_pkg_option.optionname = 'recur_notify' - and part_pkg_option.optionvalue > 0 + and CAST( part_pkg_option.optionvalue AS INTEGER ) > 0 and 0 <= ( $time + CAST( part_pkg_option.optionvalue AS $integer ) * 86400