7fdfab0ba90789194773f2bbd31bcc6ab161631a
galt
  Tue Aug 5 10:57:28 2014 -0700
Fixes #12559. GenomeSpace support added to hgTables.
diff --git src/hg/lib/cart.c src/hg/lib/cart.c
index f6acbd2..cf0cd57 100644
--- src/hg/lib/cart.c
+++ src/hg/lib/cart.c
@@ -1606,30 +1606,31 @@
 jsIncludeFile("ajax.js", NULL);
 // WTF - variable outside of a form on almost every page we make below?
 // Tim put this in.  Talking with him it sounds like some pages might actually
 // depend on it.  Not removing it until we have a chance to test.  Best fix
 // might be to add it to cartSaveSession, though this would then no longer be
 // well named, and not all things have 'db.'  Arrr.  Probably best to remove
 // and test a bunch.
 cgiMakeHiddenVar("db", db);  
 }
 
 void cartWebEnd()
 /* Write out HTML footer and get rid or error handler. */
 {
 webEnd();
 popWarnHandler();
+inWeb = FALSE;
 }
 
 void cartFooter(void)
 /* Write out HTML footer, possibly with googleAnalytics too */
 {
 #ifndef GBROWSE
 googleAnalytics();	/* can't do this in htmlEnd	*/
 #endif /* GBROWSE */
 htmlEnd();		/* because it is in a higher library */
 }
 
 void cartHtmlEnd()
 /* Write out HTML footer and get rid or error handler. */
 {
 if (inWeb)