Explorar el Código

return right values

James Seward hace 20 años
padre
commit
0f259a9524
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      QuoteEngine/QuoteEngine.tcl

+ 3 - 3
QuoteEngine/QuoteEngine.tcl

@@ -65,10 +65,10 @@ setudef flag quoteengine
 proc quote_ping { } {
 	global db_handle
 
-	if [::mysql::ping $dbhandle] {
-		return 0
-	} else {
+	if [::mysql::ping $db_handle] {
 		return 1
+	} else {
+		return 0
 	}
 }