summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2009-03-31 19:46:01 +0000
committerivan <ivan>2009-03-31 19:46:01 +0000
commit9f263b8cb183b384b9e536a78da6e4f539d7ac70 (patch)
tree52c257ac88e79a053a121cd7ac6b15f1cdf94e8a /FS
parent96a18bc4d65ab471bbd06e1ee357d6930e4a2ecf (diff)
fix impending billing notification for Pg 8.3's more strict type checking
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Cron/notify.pm2
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