diff options
author | ivan <ivan> | 2009-03-31 19:46:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-03-31 19:46:00 +0000 |
commit | 8d6784828998dc848eede30cef4a38bfd30fc3d1 (patch) | |
tree | 943fd0d74689680b13bbe1a661bd0ab0874f8f95 | |
parent | c46d0f3d030f71a21a6d459100b29d7454f8627b (diff) |
fix impending billing notification for Pg 8.3's more strict type checking
-rw-r--r-- | FS/FS/Cron/notify.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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 |