fix impending billing notification for Pg 8.3's more strict type checking
authorivan <ivan>
Tue, 31 Mar 2009 19:46:00 +0000 (19:46 +0000)
committerivan <ivan>
Tue, 31 Mar 2009 19:46:00 +0000 (19:46 +0000)
FS/FS/Cron/notify.pm

index 23cf920..c67fcc1 100644 (file)
@@ -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