[Astpp-commit] SF.net SVN: astpp: [2135] trunk
Brought to you by:
darrenkw
|
From: <son...@us...> - 2007-10-25 19:34:42
|
Revision: 2135
http://astpp.svn.sourceforge.net/astpp/?rev=2135&view=rev
Author: sonalikh
Date: 2007-10-25 12:34:44 -0700 (Thu, 25 Oct 2007)
Log Message:
-----------
Fixed SF Bug ID: 1820203
Modified Paths:
--------------
trunk/astpp-admin.cgi
trunk/astpp-update-balance.pl
Modified: trunk/astpp-admin.cgi
===================================================================
--- trunk/astpp-admin.cgi 2007-09-27 11:20:49 UTC (rev 2134)
+++ trunk/astpp-admin.cgi 2007-10-25 19:34:44 UTC (rev 2135)
@@ -2116,7 +2116,7 @@
print STDERR "BRAND: $params->{brand}\n" if $config->{debug} == 1;
while ( $count < $params->{count} ) {
my ( $number, $pin ) =
- &add_callingcard( $astpp_db, $config, $config, $brandinfo,
+ &add_callingcard( $astpp_db, $config, $brandinfo,
$params->{status}, $params->{value} * 100,
$params->{account}, $brandinfo->{pin} );
$count++;
Modified: trunk/astpp-update-balance.pl
===================================================================
--- trunk/astpp-update-balance.pl 2007-09-27 11:20:49 UTC (rev 2134)
+++ trunk/astpp-update-balance.pl 2007-10-25 19:34:44 UTC (rev 2135)
@@ -79,9 +79,8 @@
## Update calling cards and expire them and mark them as being empty.
#
$astpp_db->do("UPDATE callingcards SET status = 2 WHERE value - used <= 0");
-$astpp_db->do("UPDATE callingcards SET status = 2 WHERE expiry <= NOW()");
+$astpp_db->do("UPDATE callingcards SET status = 2 WHERE expiry <= NOW() AND expiry != '0000-00-00 00:00:00'");
-
if ( $params->{sweep} == 0 ) {
#Here comes our daily maintenance.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|