More general multi-search algorithm with cached records.
[egate.git] / www / mquery.egw
index af33dda..3cf1ca1 100644 (file)
@@ -4,7 +4,7 @@
 </head>
 <body>
 {
-# $Id: mquery.egw,v 1.11 1996/01/26 15:50:07 adam Exp $
+# $Id: mquery.egw,v 1.12 1996/01/29 17:31:45 adam Exp $
 
     if {[info commands saveState] == ""} {
         source z39util.tcl
@@ -41,7 +41,7 @@
         lappend hist($setNo,$i,database) $base
     }
     set oSetNo [lindex $sessionParms 0]
-    if {$i == 0 && $oSetNo != ""} {
+    if {$i == 0 && [info exists hist($oSetNo,0,host)]} {
         for {set i 1} {$i <= $hist($oSetNo,0,host)} {incr i} {
             set hist($setNo,$i,host) $hist($oSetNo,$i,host)
             set hist($setNo,$i,idAuthentication) \