[Astpp-commit] SF.net SVN: astpp:[2325] trunk/scripts/astpp-common.pl
Brought to you by:
darrenkw
|
From: <dar...@us...> - 2010-12-31 02:39:27
|
Revision: 2325
http://astpp.svn.sourceforge.net/astpp/?rev=2325&view=rev
Author: darrenkw
Date: 2010-12-31 02:39:20 +0000 (Fri, 31 Dec 2010)
Log Message:
-----------
The code to return a correct rate was returing routes that had been disabled. This is incorrect and has been fixed.
Modified Paths:
--------------
trunk/scripts/astpp-common.pl
Modified: trunk/scripts/astpp-common.pl
===================================================================
--- trunk/scripts/astpp-common.pl 2010-12-31 02:09:29 UTC (rev 2324)
+++ trunk/scripts/astpp-common.pl 2010-12-31 02:39:20 UTC (rev 2325)
@@ -1775,7 +1775,7 @@
my ($tmp,$sql,$record);
$tmp = "SELECT * FROM routes WHERE "
. $astpp_db->quote($destination)
- . " RLIKE pattern AND pricelist = "
+ . " RLIKE pattern AND status = 1 AND pricelist = "
. $astpp_db->quote($pricelist)
. " ORDER BY LENGTH(pattern) DESC LIMIT 1";
print STDERR "$tmp\n" if $config->{debug} == 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|