[interchange-cvs] interchange - jon modified code/UserTag/ups_query.tag

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Thu Jun 19 14:22:00 2003


User:      jon
Date:      2003-06-19 18:21:19 GMT
Modified:  code/UserTag ups_query.tag
Log:
Don't cache UPS shipping cost of $0, which is probably an error.
Thanks to Bill Carr for the patch.

Revision  Changes    Path
1.6       +1 -1      interchange/code/UserTag/ups_query.tag


rev 1.6, prev_rev 1.5
Index: ups_query.tag
===================================================================
RCS file: /var/cvs/interchange/code/UserTag/ups_query.tag,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -u -r1.5 -r1.6
--- ups_query.tag	14 May 2003 22:29:29 -0000	1.5
+++ ups_query.tag	19 Jun 2003 18:21:19 -0000	1.6
@@ -110,7 +110,7 @@
 		($tmpcost, $zone, $error) = getUPS( $mode, $origin, $zip, $w, $country);
 
 		$shipping += $tmpcost;
-		if($cache) {
+		if($cache and $shipping) {
 			$cline{updated} = $now || time();
 			$cline{cost} = $shipping || $error;
 			$db->set_slice($cache_code, \%cline);